SF Bug 1912 - Raptor should take python from the path [if not set with SBS_PYTHON or bundled with Raptor] - revised. fix
authorJon Chatten
Wed, 03 Mar 2010 10:03:19 +0000
branchfix
changeset 299 2257b1af191f
parent 298 15d964981d94
child 302 fad68f194807
SF Bug 1912 - Raptor should take python from the path [if not set with SBS_PYTHON or bundled with Raptor] - revised.
sbsv2/raptor/bin/sbs
sbsv2/raptor/bin/sbs.bat
sbsv2/raptor/lib/config/locations.xml
--- a/sbsv2/raptor/bin/sbs	Tue Mar 02 16:28:30 2010 +0000
+++ b/sbsv2/raptor/bin/sbs	Wed Mar 03 10:03:19 2010 +0000
@@ -91,6 +91,7 @@
 		__PYTHON__=$SBS_PYTHON
 	elif [ -f "$__LOCAL_PYTHON__" ]; then
 		__PYTHON__=$__LOCAL_PYTHON__
+		export SBS_PYTHON=$__PYTHON__
 		export PYTHONPATH=
 	else
 		__PYTHON__=python.exe
--- a/sbsv2/raptor/bin/sbs.bat	Tue Mar 02 16:28:30 2010 +0000
+++ b/sbsv2/raptor/bin/sbs.bat	Wed Mar 03 10:03:19 2010 +0000
@@ -45,6 +45,7 @@
 
 :localpython
 @SET __PYTHON__=%__LOCAL_PYTHON__%
+@SET SBS_PYTHON=%__PYTHON__%
 @SET PYTHONPATH=
 
 :sbspythonpath
@@ -73,7 +74,7 @@
 
 @REM Tell CYGWIN not to map unix security attributes to windows to
 @REM prevent raptor from potentially creating read-only files:
-@set CYGWIN=nontsec nosmbntsec
+@SET CYGWIN=nontsec nosmbntsec
 
 @REM Run Raptor with all the arguments.
 @%__PYTHON__% %SBS_HOME%\python\raptor_start.py %*
--- a/sbsv2/raptor/lib/config/locations.xml	Tue Mar 02 16:28:30 2010 +0000
+++ b/sbsv2/raptor/lib/config/locations.xml	Wed Mar 03 10:03:19 2010 +0000
@@ -72,7 +72,7 @@
 		<env name='SBS_UNZIP' default="$(COREUTILSBINDIR)/unzip.exe" type='tool'/>
 		<env name='SBS_BVCPP' default="$(SBS_HOME)/$(HOSTPLATFORM_DIR)/bv/bin/cpp.exe" type='tool'/>
 		<env name='SBS_PERL' default='perl.exe' type='tool'/>
-		<env name='SBS_PYTHON' default='$(SBS_HOME)/$(HOSTPLATFORM_DIR)/python264/python.exe' type='tool'/>
+		<env name='SBS_PYTHON' default='python.exe' type='tool'/>
 	</var>
 
 	<var name="default.locations" extends="hostplatform.locations">