Sfoglia il codice sorgente

grass.py: do not add scripts to the PATH on Windows (BAT files enabled)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@61896 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 anni fa
parent
commit
4ef833cb42
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  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