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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 18 07:17:08 EDT 2010


Author: glynn
Date: 2010-03-18 07:17:07 -0400 (Thu, 18 Mar 2010)
New Revision: 41470

Modified:
   grass/trunk/lib/init/init.bat
Log:
Add $GISBASE/scripts to $PATH
Add .py to $PATHEXT
Set PYTHONPATH


Modified: grass/trunk/lib/init/init.bat
===================================================================
--- grass/trunk/lib/init/init.bat	2010-03-17 17:49:03 UTC (rev 41469)
+++ grass/trunk/lib/init/init.bat	2010-03-18 11:17:07 UTC (rev 41470)
@@ -25,9 +25,12 @@
 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;%PATH%
+if "%GRASS_ADDON_PATH%"=="" set PATH=%WINGISBASE%\bin;%WINGISBASE%\scripts;%WINGISBASE%\lib;%PATH%
 if not "%GRASS_ADDON_PATH%"=="" set PATH=%WINGISBASE%\bin;%WINGISBASE%\lib;%GRASS_ADDON_PATH%;%PATH%
 
+set PYTHONPATH=%PYTHONPATH%;%WINGISBASE%\etc\python;%WINGISBASE%\etc\wxpython
+set PATHEXT=%PATHEXT%;.PY
+
 set GRASS_VERSION=GRASS_VERSION_NUMBER
 if "%HOME%"=="" set HOME=%USERPROFILE%
 set WINGISRC=%HOME%\.grass7\rc
@@ -110,9 +113,6 @@
 
 :wxpython
 
-set PYTHONPATH=%PYTHONPATH%;%WINGISBASE%\etc\python;%WINGISBASE%\etc\wxpython
-set PATHEXT=%PATHEXT%;.PY
-
 python "%GISBASE%/etc/wxpython/gis_set.py"
 if %errorlevel% == 2 goto exitinit
 python "%GISBASE%/etc/wxpython/wxgui.py"



More information about the grass-commit mailing list