From: Family J. <ma...@jo...> - 2003-07-10 10:46:57
|
I am trying to run the following script. # Python Modules import java import org def xyz(cmd, mode='r'): runtime = java.lang.Runtime.getRuntime() process = runtime.exec(cmd) return org.python.core.PyFile(process.getInputStream(), process.getOutputStream(), mode) When I call it via the command line it works file. When I call it from an embedded interperter I get the following error. AttibuteError: java package 'org' has no attribute 'python' I have checked the sys.path and they are not identical but both do contain the same paths. Other scripts that do not import java classes work fine. Any suggestions? Thanks |