From: dstarr <sta...@ho...> - 2011-05-26 19:26:45
|
I am still having an issue finding the Python script(s). Here is what i've tried. My scripts that I want to add to the sys.path are packaged in an EAR file under a different location(/blah/jboss/deploy/shared/blah.ear) than my jboss dir. Is that going to be an issue? pyInter.exec("import sys"); String earPath = AppProps.instance().getProperty(AppProps.KEY_CNS_EAR_PATH); pyInter.set("earPath", earPath); pyInter.exec("sys.path.append(earPath)"); pyInter.exec("x = sys.path"); PyObject sysPath = pyInter.get("x"); pyInter.execfile("SendGridEnvelope.py"); any help would be greatly appreciated. This is killing me. -- View this message in context: http://old.nabble.com/file-not-found-when-calling-execfile-function-tp31703044p31711113.html Sent from the jython-users mailing list archive at Nabble.com. |