[GRASS-SVN] r61896 - grass/branches/releasebranch_7_0/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 13 10:02:59 PDT 2014


Author: martinl
Date: 2014-09-13 10:02:59 -0700 (Sat, 13 Sep 2014)
New Revision: 61896

Modified:
   grass/branches/releasebranch_7_0/lib/init/grass.py
Log:
grass.py: do not add scripts to the PATH on Windows (BAT files enabled)

Modified: grass/branches/releasebranch_7_0/lib/init/grass.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/init/grass.py	2014-09-13 16:57:24 UTC (rev 61895)
+++ grass/branches/releasebranch_7_0/lib/init/grass.py	2014-09-13 17:02:59 UTC (rev 61896)
@@ -381,11 +381,13 @@
     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



More information about the grass-commit mailing list