[GRASS-SVN] r50047 - grass/branches/releasebranch_6_4/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 3 07:07:05 EST 2012


Author: martinl
Date: 2012-01-03 04:07:05 -0800 (Tue, 03 Jan 2012)
New Revision: 50047

Modified:
   grass/branches/releasebranch_6_4/lib/init/init.sh
Log:
init.sh: define default GRASS_ADDON_PATH on Windows correctly

Modified: grass/branches/releasebranch_6_4/lib/init/init.sh
===================================================================
--- grass/branches/releasebranch_6_4/lib/init/init.sh	2012-01-03 11:52:34 UTC (rev 50046)
+++ grass/branches/releasebranch_6_4/lib/init/init.sh	2012-01-03 12:07:05 UTC (rev 50047)
@@ -258,9 +258,13 @@
 
 # if it doesn't exist set it to something so that g.extension's default is reasonable
 if [ -z "$GRASS_ADDON_PATH" ] ; then
-    GRASS_ADDON_PATH="$HOME/.grass6/addons"
-    export GRASS_ADDON_PATH
+    if [ "$MINGW" ] ; then
+	GRASS_ADDON_PATH="$APPDATA/GRASS6/addons"
+    else
+	GRASS_ADDON_PATH="$HOME/.grass6/addons"
+    fi
 fi
+export GRASS_ADDON_PATH
 PATH="$GISBASE/bin:$GISBASE/scripts:$GRASS_ADDON_PATH:$PATH"
 export PATH
 



More information about the grass-commit mailing list