From: dstarr <sta...@ho...> - 2011-05-26 15:29:01
|
Hi, I am trying to execute the following code from Java: PythonInterpreter pyInter = new PythonInterpreter(); pyInter.execfile("SendGridEnvelope.py"); I have a python script called SendGridEnvelope.py that gets packaged in my WAR under WEB-INF/classes. I keep getting a file not found exception because the execfile function is looking for the Python script under my Jboss/bin directory. I am using Jython by the way. Does anyone know why the execfile method is looking for the python script in the Jboss/bin dir and how to change this? Thanks, David -- View this message in context: http://old.nabble.com/file-not-found-when-calling-execfile-function-tp31703044p31703044.html Sent from the jython-users mailing list archive at Nabble.com. |