[GRASS-SVN] r49600 - grass/branches/develbranch_6/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 7 06:04:47 EST 2011


Author: martinl
Date: 2011-12-07 03:04:47 -0800 (Wed, 07 Dec 2011)
New Revision: 49600

Modified:
   grass/branches/develbranch_6/lib/init/init.bat
Log:
winGRASS: define GRASS_ADDON_PATH (APPDATA\GRASS6\addons) if not exists

Modified: grass/branches/develbranch_6/lib/init/init.bat
===================================================================
--- grass/branches/develbranch_6/lib/init/init.bat	2011-12-07 09:28:27 UTC (rev 49599)
+++ grass/branches/develbranch_6/lib/init/init.bat	2011-12-07 11:04:47 UTC (rev 49600)
@@ -25,8 +25,8 @@
 set SAVEPATH=%PATH%
 rem DON'T include scripts directory in PATH - .bat files in bin directory
 rem are used to run scripts on Windows
-if "%GRASS_ADDON_PATH%"=="" set PATH=%WINGISBASE%\bin;%WINGISBASE%\lib;%APPDATA%\GRASS6\addons;%PATH%
-if not "%GRASS_ADDON_PATH%"=="" set PATH=%WINGISBASE%\bin;%WINGISBASE%\lib;%GRASS_ADDON_PATH%;%PATH%
+if "%GRASS_ADDON_PATH%"=="" set GRASS_ADDON_PATH=%APPDATA%\GRASS6\addons
+PATH=%WINGISBASE%\bin;%WINGISBASE%\lib;%GRASS_ADDON_PATH%;%PATH%
 
 set GIS_LOCK=1
 set GRASS_VERSION=GRASS_VERSION_NUMBER



More information about the grass-commit mailing list