[GRASS-SVN] r54492 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 1 23:56:54 PST 2013
Author: martinl
Date: 2013-01-01 23:56:53 -0800 (Tue, 01 Jan 2013)
New Revision: 54492
Modified:
grass/trunk/gui/wxpython/core/utils.py
Log:
wxGUI/launch script: modify PATH for given session
Modified: grass/trunk/gui/wxpython/core/utils.py
===================================================================
--- grass/trunk/gui/wxpython/core/utils.py 2013-01-02 07:56:09 UTC (rev 54491)
+++ grass/trunk/gui/wxpython/core/utils.py 2013-01-02 07:56:53 UTC (rev 54492)
@@ -866,7 +866,11 @@
StoreEnvVariable(key = 'GRASS_ADDON_' + key, value = addonPath)
os.environ['GRASS_ADDON_' + key] = addonPath
-
+
+ # update path
+ if addonPath not in os.environ['PATH']:
+ os.environ['PATH'] = addonPath + os.pathsep + os.environ['PATH']
+
# From lib/gis/col_str.c, except purple which is mentioned
# there but not given RGB values
str2rgb = {'aqua': (100, 128, 255),
More information about the grass-commit
mailing list