瀏覽代碼

wxGUI: revert https://trac.osgeo.org/grass/changeset/56800

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56865 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 年之前
父節點
當前提交
e5442ded35
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      gui/wxpython/core/render.py
  2. 1 1
      gui/wxpython/gui_core/gselect.py
  3. 1 1
      gui/wxpython/gui_core/mapdisp.py

+ 1 - 1
gui/wxpython/core/render.py

@@ -451,7 +451,7 @@ class Map(object):
         """!Return region projection and map units information
         """
         projinfo = dict()
-        if not grass.find_program('g.proj'):
+        if not grass.find_program('g.proj', ['--help']):
             sys.exit(_("GRASS module '%s' not found. Unable to start map "
                        "display window.") % 'g.proj')
         

+ 1 - 1
gui/wxpython/gui_core/gselect.py

@@ -1803,7 +1803,7 @@ class GdalSelect(wx.Panel):
                                 driver = 'pg').splitlines()
                 if db is not None:
                     win.SetItems(sorted(db))
-                elif grass.find_program('psql'):
+                elif grass.find_program('psql', ['--help']):
                     if not win.GetItems():
                         p = grass.Popen(['psql', '-ltA'], stdout = grass.PIPE)
                         ret = p.communicate()[0]

+ 1 - 1
gui/wxpython/gui_core/mapdisp.py

@@ -105,7 +105,7 @@ class MapFrameBase(wx.Frame):
     def _initMap(self, Map):
         """!Initialize map display, set dimensions and map region
         """
-        if not grass.find_program('g.region'):
+        if not grass.find_program('g.region', ['--help']):
             sys.exit(_("GRASS module '%s' not found. Unable to start map "
                        "display window.") % 'g.region')