瀏覽代碼

Backport from https://trac.osgeo.org/grass/changeset/39475 in develbranch_6. Enhanced RunCommand to return returncode, stdout, and stderr.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39569 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 15 年之前
父節點
當前提交
de24f6c4db
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      gui/wxpython/gui_modules/gcmd.py

+ 3 - 0
gui/wxpython/gui_modules/gcmd.py

@@ -594,4 +594,7 @@ def RunCommand(prog, flags = "", overwrite = False, quiet = False, verbose = Fal
     if not getErrorMsg:
         return stdout
     
+    if read and getErrorMsg:
+        return ret, stdout, stderr
+    
     return stdout, stderr