[GRASS-SVN] r56138 - grass/branches/releasebranch_6_4/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 6 03:33:46 PDT 2013


Author: hamish
Date: 2013-05-06 03:33:46 -0700 (Mon, 06 May 2013)
New Revision: 56138

Modified:
   grass/branches/releasebranch_6_4/lib/init/init.bat
Log:
Windows7 and 8 don't like the PYTHONPATH if/else for some reason (merge from devbr6)

Modified: grass/branches/releasebranch_6_4/lib/init/init.bat
===================================================================
--- grass/branches/releasebranch_6_4/lib/init/init.bat	2013-05-06 10:28:36 UTC (rev 56137)
+++ grass/branches/releasebranch_6_4/lib/init/init.bat	2013-05-06 10:33:46 UTC (rev 56138)
@@ -117,17 +117,17 @@
 )
 set HAVE_GISRC=
 
-if "%PYTHONPATH%" == "" (
-	set PYTHONPATH=%GISBASE%\etc\python
-) else (
-	set PYTHONPATH=%PYTHONPATH%;%GISBASE%\etc\python
-)
+rem why doesn't it like if () else ()?
+if not "%PYTHONPATH%" == "" set PYTHONPATH=%PYTHONPATH%;%GISBASE%\etc\python
+if "%PYTHONPATH%" == "" set PYTHONPATH=%GISBASE%\etc\python
 
+
 if "%GRASS_GUI%"=="wxpython" goto wxpython
 
 PATH=%PATH%;%GISBASE%\scripts
 if "%GRASS_GUI%"=="text" goto text
 
+
 rem Tcl/Tk GUI setup
 if not "%GRASS_WISH%"=="" (
 	"%GRASS_WISH%" "%GISBASE%\etc\gis_set.tcl"



More information about the grass-commit mailing list