[GRASS-SVN] r41692 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 3 10:44:24 EDT 2010
Author: martinl
Date: 2010-04-03 10:44:22 -0400 (Sat, 03 Apr 2010)
New Revision: 41692
Modified:
grass/trunk/lib/init/init.bat
Log:
fix init.bat
Modified: grass/trunk/lib/init/init.bat
===================================================================
--- grass/trunk/lib/init/init.bat 2010-04-03 11:53:01 UTC (rev 41691)
+++ grass/trunk/lib/init/init.bat 2010-04-03 14:44:22 UTC (rev 41692)
@@ -3,7 +3,7 @@
rem
rem MODULE: GRASS Initialization
rem AUTHOR(S): Paul Kelly
-rem
+rem Some updates by Martin Landa <landa.martin gmail.com>
rem PURPOSE: The source file for this batch script is lib/init/init.bat.
rem It sets up some environment variables, default GISRC file
rem if necessary, etc. prior to starting GRASS proper.
@@ -14,7 +14,7 @@
rem and does not expect or provide an interactive terminal
rem running in addition to the GUI display.
rem
-rem COPYRIGHT: (C) 2006, 2008 by the GRASS Development Team
+rem COPYRIGHT: (C) 2006, 2008, 2010 by the GRASS Development Team
rem
rem This program is free software under the GNU General Public
rem License (>=v2). Read the file COPYING that comes with GRASS
@@ -28,7 +28,7 @@
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 PYTHONPATH=%PYTHONPATH%;%WINGISBASE%\etc\python;%WINGISBASE%\etc\gui\wxpython
set PATHEXT=%PATHEXT%;.PY
set GRASS_VERSION=GRASS_VERSION_NUMBER
@@ -77,7 +77,10 @@
set HAVE_GISRC=false
rem Create an initial GISRC file based on current directory
-"%WINGISBASE%\etc\echo" "GISDBASE: %CD%" | g.dirseps -g > "%WINGISRC%"
+if not exist "%HOME%\.grass7" (
+ mkdir "%HOME%\.grass7"
+)
+"%WINGISBASE%\etc\echo" "GISDBASE: %HOME%" | g.dirseps -g > "%WINGISRC%"
"%WINGISBASE%\etc\echo" "LOCATION_NAME: <UNKNOWN>" >> "%WINGISRC%"
"%WINGISBASE%\etc\echo" "MAPSET: <UNKNOWN>" >> "%WINGISRC%"
@@ -108,14 +111,13 @@
if %errorlevel% == 2 goto exitinit
"%WINGISBASE%\etc\clean_temp" > NUL:
+rem goto exitinit
-goto exitinit
-
:wxpython
-python "%GISBASE%/etc/wxpython/gis_set.py"
+%GRASS_PYTHON% "%GISBASE%/etc/gui/wxpython/gis_set.py"
if %errorlevel% == 2 goto exitinit
-python "%GISBASE%/etc/wxpython/wxgui.py"
+%GRASS_PYTHON% "%GISBASE%/etc/gui/wxpython/wxgui.py"
goto exitinit
More information about the grass-commit
mailing list