From: <otm...@us...> - 2009-05-29 09:44:28
|
Revision: 6422 http://jython.svn.sourceforge.net/jython/?rev=6422&view=rev Author: otmarhumbel Date: 2009-05-29 09:44:21 +0000 (Fri, 29 May 2009) Log Message: ----------- fix subprocess.test_executable() in the java -jar case Modified Paths: -------------- trunk/jython/Lib/subprocess.py Modified: trunk/jython/Lib/subprocess.py =================================================================== --- trunk/jython/Lib/subprocess.py 2009-05-29 05:28:56 UTC (rev 6421) +++ trunk/jython/Lib/subprocess.py 2009-05-29 09:44:21 UTC (rev 6422) @@ -1244,6 +1244,8 @@ if executable is not None: args[0] = executable + if '.jar' == executable[-4:]: + args = ['java', '-jar'] + args builder = java.lang.ProcessBuilder(args) # os.environ may be inherited for compatibility with CPython This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |