[GRASS-SVN] r56137 - grass/branches/develbranch_6/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 6 03:28:36 PDT 2013


Author: hamish
Date: 2013-05-06 03:28:36 -0700 (Mon, 06 May 2013)
New Revision: 56137

Modified:
   grass/branches/develbranch_6/lib/init/init.bat
Log:
Windows7 and 8 don't like the PYTHONPATH if/else for some reason

Modified: grass/branches/develbranch_6/lib/init/init.bat
===================================================================
--- grass/branches/develbranch_6/lib/init/init.bat	2013-05-06 10:02:21 UTC (rev 56136)
+++ grass/branches/develbranch_6/lib/init/init.bat	2013-05-06 10:28:36 UTC (rev 56137)
@@ -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