[GRASS-SVN] r38274 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 5 15:44:15 EDT 2009


Author: martinl
Date: 2009-07-05 15:44:15 -0400 (Sun, 05 Jul 2009)
New Revision: 38274

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: don't crash when full path is not defined


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2009-07-05 19:38:36 UTC (rev 38273)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2009-07-05 19:44:15 UTC (rev 38274)
@@ -826,7 +826,8 @@
                 self.notebookpanel.notebook.SetSelection(self.notebookpanel.goutputId)
             
             try:
-                cmd[0] = self.task.path # full path
+                if self.task.path:
+                    cmd[0] = self.task.path # full path
                 self.goutput.RunCmd(cmd)
             except AttributeError, e:
                 print >> sys.stderr, "%s: Propably not running in wxgui.py session?" % (e)



More information about the grass-commit mailing list