[GRASS-SVN] r46688 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 13 13:35:24 EDT 2011
Author: martinl
Date: 2011-06-13 10:35:24 -0700 (Mon, 13 Jun 2011)
New Revision: 46688
Modified:
grass/trunk/lib/init/grass.py
Log:
grass.py: add $GRASS_ADDON_PATH/path and $GRASS_ADDON_PATH/scripts to PATH
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2011-06-13 17:34:19 UTC (rev 46687)
+++ grass/trunk/lib/init/grass.py 2011-06-13 17:35:24 UTC (rev 46688)
@@ -278,6 +278,9 @@
addon_path = os.getenv('GRASS_ADDON_PATH')
if addon_path:
path_prepend(addon_path, 'PATH')
+ path_prepend(os.path.join(addon_path, 'scripts'), 'PATH')
+ path_prepend(os.path.join(addon_path, 'bin'), 'PATH')
+
path_prepend(gfile('scripts'), 'PATH')
path_prepend(gfile('bin'), 'PATH')
More information about the grass-commit
mailing list