Author nriley
Recipients nriley, thijs
Date 2008-07-16.16:56:12
SpamBayes Score 0.000218274
Marked as misclassified No
Message-id <>
I'm able to reproduce this.  sys.executable is not being set even though the 
launcher script sets the corresponding system property (-Dpython.executable=...)

Try changing the last line of the "jython" script to the following:

"/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java" -
Dpython.home="/Users/xxx/Sites/jython2.5a1+" -classpath "$CP" 
org.python.util.jython -Dpython.executable="$0" "$@"

(replacing xxx with the directory where you have it installed).

-D arguments after the class specification are parsed by Jython rather than by the 
VM, and setting python.executable there works.

Another option (assuming you don't use it) is to move away or delete the "registry" 

There are so many places to set Jython options (system properties, registry, 
Python-specific command line options, Jython-parsed -D options, and soon 
environment variables) it is really unclear how precedence should work; we should 
document this and make sure it's properly tested.
Date User Action Args
2008-07-16 16:56:13nrileysetspambayes_score: 0.000218274 -> 0.000218274
messageid: <>
2008-07-16 16:56:13nrileysetspambayes_score: 0.000218274 -> 0.000218274
recipients: + nriley, thijs
2008-07-16 16:56:13nrileylinkissue1069 messages
2008-07-16 16:56:12nrileycreate