瀏覽代碼

attempt to fix grass.task.get_interface python3 issue, see https://trac.osgeo.org/grass/ticket/3731

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73956 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 6 年之前
父節點
當前提交
d7e2cb261f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/python/script/task.py

+ 1 - 1
lib/python/script/task.py

@@ -472,7 +472,7 @@ def get_interface_description(cmd):
     :param cmd: command (name of GRASS module)
     """
     try:
-        p = Popen([cmd, '--interface-description'], stdout=PIPE,
+        p = Popen([encode(cmd), b'--interface-description'], stdout=PIPE,
                   stderr=PIPE)
         cmdout, cmderr = p.communicate()