[GRASS-SVN] r40081 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 19 16:47:21 EST 2009
Author: martinl
Date: 2009-12-19 16:47:20 -0500 (Sat, 19 Dec 2009)
New Revision: 40081
Modified:
grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: launch non-GRASS commands
Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py 2009-12-19 21:41:00 UTC (rev 40080)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py 2009-12-19 21:47:20 UTC (rev 40081)
@@ -465,20 +465,12 @@
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)
More information about the grass-commit
mailing list