Skip to content

Commit

Permalink
Use gs instead of gscript for grass.script
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Oct 17, 2024
1 parent c97126c commit 8420cfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui/wxpython/datacatalog/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def getLocationTree(gisdbase, location, queue, mapsets=None, lazy=False):
ltype, wholename = each.split("/")
name, mapset = wholename.split("@", maxsplit=1)
if ltype == "vector":
p = gscript.pipe_command(
p = gs.pipe_command(
"v.info",
flags="t",
map=wholename,
Expand All @@ -143,8 +143,8 @@ def getLocationTree(gisdbase, location, queue, mapsets=None, lazy=False):
env=env,
)
stdout, stderr = p.communicate()
stdout = gscript.decode(stdout)
stderr = gscript.decode(stderr)
stdout = gs.decode(stdout)
stderr = gs.decode(stderr)

if not stderr:
map_info = dict(
Expand Down

0 comments on commit 8420cfc

Please sign in to comment.