From: Steve Y. <ste...@gm...> - 2014-10-21 00:40:10
|
This thread seems to suggest that it's possible: http://sourceforge.net/p/jython/mailman/message/27569349/ But I've tried various incantations with no luck. My scripts are in a jar file on my classpath. I've ensured that the absolute path to the jar is added to sys.path, but when I call myPythonInterpreter.execfile("/any/path/foo.py"), it throws an IOError complaining file not found, and it does not appear to be looking in jars in the classpath or in sys.path -- it's always checking the path relative to the Java process current directory. Should I just slurp the contents of the file from the jar and pass it to exec(), instead? -steve |