Browse Source

wxGUI: don't crash when full path is not defined

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38274 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 years ago
parent
commit
583ee10062
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/gui_modules/menuform.py

+ 2 - 1
gui/wxpython/gui_modules/menuform.py

@@ -826,7 +826,8 @@ class mainFrame(wx.Frame):
                 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)