From: <otm...@us...> - 2008-11-05 15:30:36
|
Revision: 5545 http://jython.svn.sourceforge.net/jython/?rev=5545&view=rev Author: otmarhumbel Date: 2008-11-05 15:30:32 +0000 (Wed, 05 Nov 2008) Log Message: ----------- correctly quote _JYTHON_HOME this should fix issue #1125 Modified Paths: -------------- trunk/jython/src/shell/jython.bat Modified: trunk/jython/src/shell/jython.bat =================================================================== --- trunk/jython/src/shell/jython.bat 2008-11-05 07:30:28 UTC (rev 5544) +++ trunk/jython/src/shell/jython.bat 2008-11-05 15:30:32 UTC (rev 5545) @@ -24,11 +24,13 @@ set _JAVA_CMD="%JAVA_HOME:"=%\bin\java" ) -set _JYTHON_HOME=%JYTHON_HOME% rem remove surrounding quotes from jython home, to be able to safely empty-test it set _TRIMMED_JYTHON_HOME=%JYTHON_HOME% for /f "useback tokens=*" %%a in ('%_TRIMMED_JYTHON_HOME%') do set _TRIMMED_JYTHON_HOME=%%~a -if not "%_TRIMMED_JYTHON_HOME%"=="" goto gotHome +if not "%_TRIMMED_JYTHON_HOME%"=="" ( + set _JYTHON_HOME="%_TRIMMED_JYTHON_HOME%" + goto gotHome +) pushd "%~dp0%\.." set _JYTHON_HOME="%CD%" popd This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |