浏览代码

fix https://trac.osgeo.org/grass/changeset/43266

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43278 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 年之前
父节点
当前提交
cef7b09697
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      gui/wxpython/gui_modules/menuform.py

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

@@ -1993,10 +1993,9 @@ def getInterfaceDescription(cmd):
         cmdout = grass.Popen([cmd, '--interface-description'], stdout = grass.PIPE).communicate()[0]
     except OSError:
         raise gcmd.GException, _("Unable to fetch interface description for command '%s'.") % cmd
-    cmdout.replace('grass-interface.dtd', os.path.join(globalvar.ETCDIR, 'grass-interface.dtd'))
     
-    return cmdout
-
+    return cmdout.replace('grass-interface.dtd', os.path.join(globalvar.ETCDIR, 'grass-interface.dtd'))
+    
 class GrassGUIApp(wx.App):
     """!Stand-alone GRASS command GUI
     """