瀏覽代碼

wxGUI/gcmd: fix read command stdout (#1228)

(caused an incorrect line break in the e.g. 'GRASS_INFO_PERCENT: 3'
and error during parsing percent value)
Tomas Zigo 4 年之前
父節點
當前提交
b4298a812a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/core/gcmd.py

+ 1 - 1
gui/wxpython/core/gcmd.py

@@ -297,7 +297,7 @@ class Popen(subprocess.Popen):
                 if not select.select([conn], [], [], 0)[0]:
                     return ''
 
-                r = conn.read(maxsize)
+                r = conn.read()
 
                 if not r:
                     return self._close(which)