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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 4 06:50:54 EST 2012


Author: martinl
Date: 2012-03-04 03:50:54 -0800 (Sun, 04 Mar 2012)
New Revision: 50982

Modified:
   grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
Log:
wxGUI: ignore wrappers


Modified: grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/globalvar.py	2012-03-04 11:37:09 UTC (rev 50981)
+++ grass/branches/develbranch_6/gui/wxpython/core/globalvar.py	2012-03-04 11:50:54 UTC (rev 50982)
@@ -139,7 +139,11 @@
     if os.path.exists(os.path.join(gisbase, 'etc', 'gui', 'scripts')):
         os.environ["PATH"] = os.getenv("PATH") + os.pathsep + os.path.join(gisbase, 'etc', 'gui', 'scripts')
         os.environ["PATH"] = os.getenv("PATH") + os.pathsep + os.path.join(gisbase, 'etc', 'wxpython', 'scripts')
-        cmd = cmd + os.listdir(os.path.join(gisbase, 'etc', 'gui', 'scripts'))
+        
+        pattern = "_wrapper"
+        for script in os.listdir(os.path.join(gisbase, 'etc', 'gui', 'scripts')):
+            if script[-len(pattern):] != pattern: # ignore wrappers
+                cmd.append(script)
     
     # scan addons (path)
     if os.getenv('GRASS_ADDON_PATH'):



More information about the grass-commit mailing list