Bläddra i källkod

Use os.pathsep instead of ":" for portability

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37870 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 år sedan
förälder
incheckning
7aadd2bbe1
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      gui/wxpython/gui_modules/globalvar.py

+ 1 - 1
gui/wxpython/gui_modules/globalvar.py

@@ -123,7 +123,7 @@ def GetGRASSCmds(bin=True, scripts=True, gui_scripts=True):
     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: