[GRASS-SVN] r55971 - grass/branches/releasebranch_6_4/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 24 01:17:34 PDT 2013
Author: hamish
Date: 2013-04-24 01:17:34 -0700 (Wed, 24 Apr 2013)
New Revision: 55971
Modified:
grass/branches/releasebranch_6_4/lib/init/init.bat
Log:
try for universal access to grass python libs (#1945, merge from devbr6)
Modified: grass/branches/releasebranch_6_4/lib/init/init.bat
===================================================================
--- grass/branches/releasebranch_6_4/lib/init/init.bat 2013-04-24 08:16:37 UTC (rev 55970)
+++ grass/branches/releasebranch_6_4/lib/init/init.bat 2013-04-24 08:17:34 UTC (rev 55971)
@@ -23,8 +23,10 @@
rem #########################################################################
set SAVEPATH=%PATH%
-rem DON'T include scripts directory in PATH - .bat files in bin directory
-rem are used to run scripts on Windows
+rem
+rem DON'T include the scripts/ directory in PATH -- The .bat files in the
+rem bin/ directory are what execute the scripts on Windows.
+rem
if exist "%APPDATA%\GRASS6\env.bat" (
call %APPDATA%\GRASS6\env.bat
@@ -113,6 +115,12 @@
)
set HAVE_GISRC=
+if "%PYTHONPATH%" == "" (
+ set PYTHONPATH=%GISBASE%\etc\python
+) else (
+ set PYTHONPATH=%PYTHONPATH%;%GISBASE%\etc\python
+)
+
if "%GRASS_GUI%"=="text" goto text
if "%GRASS_GUI%"=="wxpython" goto wxpython
@@ -140,7 +148,7 @@
:wxpython
-set PYTHONPATH=%PYTHONPATH%;%GISBASE%\etc\python;%GISBASE%\etc\wxpython
+set PYTHONPATH=%PYTHONPATH%;%GISBASE%\etc\wxpython
if "%GRASS_PYTHON%"=="" set GRASS_PYTHON=python
@@ -167,6 +175,7 @@
"%GISBASE%\etc\echo" "When ready to quit enter: exit"
"%GISBASE%\etc\echo" "Help is available with the command: g.manual -i"
"%GISBASE%\etc\echo" "See the licence terms with: g.version -c"
+rem "Start the GUI with: g.gui wxpython"
"%GISBASE%\etc\echo" ""
prompt GRASS %GRASS_VERSION% $C%LOCATION_NAME%$F$G
More information about the grass-commit
mailing list