浏览代码

wxGUI: launch non-GRASS commands

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40081 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 年之前
父节点
当前提交
67df371ee2
共有 1 个文件被更改,包括 6 次插入14 次删除
  1. 6 14
      gui/wxpython/gui_modules/goutput.py

+ 6 - 14
gui/wxpython/gui_modules/goutput.py

@@ -465,20 +465,12 @@ class GMConsole(wx.SplitterWindow):
         else:
             # Send any other command to the shell. Send output to
             # console output window
-
-            # if command is not a GRASS command, treat it like a shell command
-            try:
-#                gcmd.Command(cmdlist,
-#                         stdout=self.cmd_stdout,
-#                         stderr=self.cmd_stderr)
-                self.cmdThread.RunCmd(GrassCmd,
-                                      onDone,
-                                      cmdlist,
-                                      self.cmd_stdout, self.cmd_stderr)
-                self.btn_abort.Enable()
-                self.cmd_output_timer.Start(50)
-            except gcmd.CmdError, e:
-                print >> sys.stderr, e
+            self.cmdThread.RunCmd(GrassCmd,
+                                  onDone,
+                                  cmdlist,
+                                  self.cmd_stdout, self.cmd_stderr)                                         
+            self.btn_abort.Enable()
+            self.cmd_output_timer.Start(50)
         
         # reset output window to read only
         self.cmd_output.SetReadOnly(True)