Bläddra i källkod

wxGUI: launch non-GRASS commands

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40081 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 år sedan
förälder
incheckning
67df371ee2
1 ändrade filer med 6 tillägg och 14 borttagningar
  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:
         else:
             # Send any other command to the shell. Send output to
             # Send any other command to the shell. Send output to
             # console output window
             # 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
         # reset output window to read only
         self.cmd_output.SetReadOnly(True)
         self.cmd_output.SetReadOnly(True)