Selaa lähdekoodia

grass.py: do not include 'scripts' tp the path on windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61142 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 vuotta sitten
vanhempi
commit
51aa077296
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      lib/init/grass.py

+ 4 - 2
lib/init/grass.py

@@ -381,11 +381,13 @@ def set_paths():
     if not addon_base:
         addon_base = os.path.join(grass_config_dir, 'addons')
         os.environ['GRASS_ADDON_BASE'] = addon_base
-    path_prepend(os.path.join(addon_base, 'scripts'), 'PATH')
+    if not windows:
+        path_prepend(os.path.join(addon_base, 'scripts'), 'PATH')
     path_prepend(os.path.join(addon_base, 'bin'), 'PATH')
     
     # standard installation
-    path_prepend(gfile('scripts'), 'PATH')
+    if not windows:
+        path_prepend(gfile('scripts'), 'PATH')
     path_prepend(gfile('bin'), 'PATH')
 
     # Set PYTHONPATH to find GRASS Python modules