浏览代码

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 年之前
父节点
当前提交
583ee10062
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)