[GRASS-SVN] r37872 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 13 21:36:35 EDT 2009
Author: hamish
Date: 2009-06-13 21:36:35 -0400 (Sat, 13 Jun 2009)
New Revision: 37872
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py
Log:
Use os.pathsep instead of : for portability (merge from trunk; Glynn)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py 2009-06-14 01:35:28 UTC (rev 37871)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py 2009-06-14 01:36:35 UTC (rev 37872)
@@ -122,9 +122,9 @@
if scripts is True:
list = list + os.listdir(os.path.join(gisbase, 'scripts'))
if gui_scripts is True:
- os.environ["PATH"] = os.getenv("PATH") + ':%s' % os.path.join(gisbase, 'etc', 'gui', 'scripts')
+ os.environ["PATH"] = os.getenv("PATH") + os.pathsep + os.path.join(gisbase, 'etc', 'gui', 'scripts')
list = list + os.listdir(os.path.join(gisbase, 'etc', 'gui', 'scripts'))
-
+
if subprocess.mswindows:
for idx in range(len(list)):
list[idx] = list[idx].replace(EXT_BIN, '')
More information about the grass-commit
mailing list