From: <bc...@wo...> - 2001-03-15 08:32:30
|
[John Mudd] >I tried jythonc as follows with the --all option so that I can run w/o >the jython jar file present. I was able to get this to work for one >application but not this one. It isn't the jython.jar itself, but the python.home property which is causing the difference. In Jython-2.0 a bug exists in os.java that demand that sys.prefix have a non-null value. When jython.jar exist in the classpath, the python.home and sys.prefix is initialized to the directory of the jython.jar file. As a workaround you can assign a value to sys.prefix before importing the "os" module. import sys sys.prefix = "." import os The bug in "os" is solved in Jython-2.1a1. regards, finn |