[GRASS-SVN] r50395 - grass/branches/develbranch_6/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 23 14:58:23 EST 2012


Author: martinl
Date: 2012-01-23 11:58:23 -0800 (Mon, 23 Jan 2012)
New Revision: 50395

Modified:
   grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
Log:
wingrass: fix collecting command for wxGUI

Modified: grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/globalvar.py	2012-01-23 19:47:29 UTC (rev 50394)
+++ grass/branches/develbranch_6/gui/wxpython/core/globalvar.py	2012-01-23 19:58:23 UTC (rev 50395)
@@ -112,8 +112,8 @@
     gisbase = os.environ['GISBASE']
     cmd = list()
     if sys.platform == 'win32':
-        scripts = { 'bat' : list(),
-                    'py'  : list()
+        scripts = { '.bat' : list(),
+                    '.py'  : list()
                     }
     else:
         scripts = {}
@@ -123,7 +123,8 @@
         for fname in os.listdir(os.path.join(gisbase, 'bin')):
             if scripts: # win32
                 name, ext = os.path.splitext(fname)
-                cmd.append(name)
+                if ext != '.manifest':
+                    cmd.append(name)
                 if ext in scripts.keys():
                     scripts[ext].append(name)
             else:



More information about the grass-commit mailing list