Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
e5442ded35

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

@@ -451,7 +451,7 @@ class Map(object):
         """!Return region projection and map units information
         """!Return region projection and map units information
         """
         """
         projinfo = dict()
         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 "
             sys.exit(_("GRASS module '%s' not found. Unable to start map "
                        "display window.") % 'g.proj')
                        "display window.") % 'g.proj')
         
         

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

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

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

@@ -105,7 +105,7 @@ class MapFrameBase(wx.Frame):
     def _initMap(self, Map):
     def _initMap(self, Map):
         """!Initialize map display, set dimensions and map region
         """!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 "
             sys.exit(_("GRASS module '%s' not found. Unable to start map "
                        "display window.") % 'g.region')
                        "display window.") % 'g.region')