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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 30 05:57:02 EDT 2011


Author: martinl
Date: 2011-06-30 02:57:02 -0700 (Thu, 30 Jun 2011)
New Revision: 46860

Modified:
   grass/trunk/lib/init/grass.py
Log:
define default GRASS_ADDON_PATH


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2011-06-30 09:52:26 UTC (rev 46859)
+++ grass/trunk/lib/init/grass.py	2011-06-30 09:57:02 UTC (rev 46860)
@@ -278,6 +278,7 @@
     addon_path = os.getenv('GRASS_ADDON_PATH')
     if not addon_path:
         addon_path = os.path.join(os.getenv('HOME'), '.grass7', 'addons')
+        os.environ['GRASS_ADDON_PATH'] = addon_path
         message(_("GRASS_ADDON_PATH undefined, using '%s'") % addon_path)
     
     path_prepend(addon_path, 'PATH')



More information about the grass-commit mailing list