[GRASS-SVN] r61142 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 3 08:02:22 PDT 2014


Author: martinl
Date: 2014-07-03 08:02:22 -0700 (Thu, 03 Jul 2014)
New Revision: 61142

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass.py: do not include 'scripts' tp the path on windows

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2014-07-03 14:56:26 UTC (rev 61141)
+++ grass/trunk/lib/init/grass.py	2014-07-03 15:02:22 UTC (rev 61142)
@@ -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