[GRASS-SVN] r55955 - grass/branches/develbranch_6/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 23 06:12:52 PDT 2013
Author: hamish
Date: 2013-04-23 06:12:51 -0700 (Tue, 23 Apr 2013)
New Revision: 55955
Modified:
grass/branches/develbranch_6/lib/init/init.bat
Log:
try for universal access to grass python libs (#1945)
Modified: grass/branches/develbranch_6/lib/init/init.bat
===================================================================
--- grass/branches/develbranch_6/lib/init/init.bat 2013-04-23 12:32:07 UTC (rev 55954)
+++ grass/branches/develbranch_6/lib/init/init.bat 2013-04-23 13:12:51 UTC (rev 55955)
@@ -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