I want to execfile a python script from within Java as __main__ which can be
found on PYTHONPATH and lies outside of my jar. Do I have to find it
manually and pass it to execfile as stream or is there an easier way to do
PythonInterpreter.execfile("myscript.py") looks for the script in the local
directory but not in PYTHONPATH.
Running execfile(InputStream) works fine, but I have to find the file
manually. I would rather take advantage of PYTHONPATH.
Any advice how I should go about this?
View this message in context: http://old.nabble.com/Finding-Python-Scripts-from-PYTHONPATH-tp32939230p32939230.html
Sent from the jython-users mailing list archive at Nabble.com.