[GRASS-SVN] r45782 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Mar 27 04:00:48 EDT 2011
Author: martinl
Date: 2011-03-27 01:00:48 -0700 (Sun, 27 Mar 2011)
New Revision: 45782
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
Log:
wxGUI: show only bat scripts
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py 2011-03-27 06:55:30 UTC (rev 45781)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py 2011-03-27 08:00:48 UTC (rev 45782)
@@ -149,7 +149,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')
@@ -161,7 +161,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