[GRASS-SVN] r40435 - grass/branches/develbranch_6/mswindows
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 13 23:34:14 EST 2010
Author: hamish
Date: 2010-01-13 23:34:13 -0500 (Wed, 13 Jan 2010)
New Revision: 40435
Modified:
grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi
Log:
set GRASS_PYTHON if it isn't (trac #534)
Modified: grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi
===================================================================
--- grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi 2010-01-14 04:06:30 UTC (rev 40434)
+++ grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi 2010-01-14 04:34:13 UTC (rev 40435)
@@ -569,8 +569,9 @@
FileWrite $0 'rem Path to the proj files (notably the epsg projection list)$\r$\n'
FileWrite $0 'set GRASS_PROJSHARE=%GRASSDIR%\proj$\r$\n'
FileWrite $0 '$\r$\n'
- FileWrite $0 'rem Path to the python directory$\r$\n'
+ FileWrite $0 'rem Path to the python directory$\r$\n'
FileWrite $0 'set PYTHONHOME=%GRASSDIR%\Python25$\r$\n'
+ FileWrite $0 'if "x%GRASS_PYTHON%" == "x" set GRASS_PYTHON=python\r$\n'
FileWrite $0 '$\r$\n'
FileWrite $0 'set WINGISBASE=%GRASSDIR%$\r$\n'
FileWrite $0 '"%WINGISBASE%\etc\Init.bat" %*'
@@ -670,6 +671,9 @@
FileWrite $0 'export PYTHONPATH$\r$\n'
FileWrite $0 'PYTHONHOME="$INSTALL_DIR\Python25"$\r$\n'
FileWrite $0 'export PYTHONHOME$\r$\n'
+ FileWrite $0 'if [ -z "$$GRASS_PYTHON" ] ; then\r$\n'
+ FileWrite $0 ' GRASS_PYTHON=python; export GRASS_PYTHON\r$\n'
+ FileWrite $0 'fi\r$\n'
FileWrite $0 '$\r$\n'
FileWrite $0 '# Set the GRASS_PROJSHARE variable$\r$\n'
FileWrite $0 'GRASS_PROJSHARE="$INSTALL_DIR\proj"$\r$\n'
More information about the grass-commit
mailing list