[GRASS-SVN] r45783 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 27 04:11:28 EDT 2011


Author: martinl
Date: 2011-03-27 01:11:28 -0700 (Sun, 27 Mar 2011)
New Revision: 45783

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py
Log:
wxGUI: show only bat scripts
(merge r45782 from devbr6)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py	2011-03-27 08:00:48 UTC (rev 45782)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py	2011-03-27 08:11:28 UTC (rev 45783)
@@ -148,7 +148,7 @@
         
         # add special call for setting vector colors
         cmd.append('vcolors')
-    if scripts:
+    if scripts and sys.platform != "win32":
         cmd = cmd + os.listdir(os.path.join(gisbase, 'scripts')) 
     if gui_scripts:
         os.environ["PATH"] = os.getenv("PATH") + os.pathsep + os.path.join(gisbase, 'etc', 'gui', 'scripts')
@@ -160,7 +160,7 @@
             name, ext = os.path.splitext(cmd[idx])
             if ext in (EXT_BIN, EXT_SCT):
                 cmd[idx] = name
-    
+
     return cmd
 
 """@brief Collected GRASS-relared binaries/scripts"""



More information about the grass-commit mailing list