[GRASS-SVN] r46876 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 30 12:33:02 EDT 2011
Author: martinl
Date: 2011-06-30 09:33:02 -0700 (Thu, 30 Jun 2011)
New Revision: 46876
Modified:
grass/trunk/lib/init/grass.py
Log:
define default GRASS_ADDON_PATH for Windows
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2011-06-30 16:03:54 UTC (rev 46875)
+++ grass/trunk/lib/init/grass.py 2011-06-30 16:33:02 UTC (rev 46876)
@@ -277,7 +277,10 @@
def set_paths():
addon_path = os.getenv('GRASS_ADDON_PATH')
if not addon_path:
- addon_path = os.path.join(os.getenv('HOME'), '.grass7', 'addons')
+ if sys.platform == 'win32':
+ addon_path = os.path.join(os.getenv('APPDATA'), 'GRASS7', 'addons')
+ else:
+ 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)
More information about the grass-commit
mailing list