[GRASS-SVN] r37871 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 13 21:35:28 EDT 2009


Author: hamish
Date: 2009-06-13 21:35:28 -0400 (Sat, 13 Jun 2009)
New Revision: 37871

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
Log:
Use os.pathsep instead of : for portability (merge from trunk; Glynn)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py	2009-06-14 01:23:41 UTC (rev 37870)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py	2009-06-14 01:35:28 UTC (rev 37871)
@@ -123,9 +123,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