I have been trying to use the javaos.execute() method for
some time now, unsuccessfully. I basically wanted to do the
os.execute( "f:\tests\HelloWorld" )
where HelloWorld is my compiled and working Java
application. I always get
AttributeError: class 'org.python.modules.os' has no
I have researched this mailing lists archives for this bug
and have seen several posts. But I *have* confirmed that I
am finding javaos on my classpath (I added a print statement
in javaos.py and see it printed). I noticed that execute()
is a method within _ShellEnv class of javaos. So I guess I
do not have access to it? Am I then "forced" to implement
the execute() method in my own .py file? I confirmed that
other os function calls work. e.g., os.getcwd(), which are
in the __all__ of javaos. I have printed sys.path and see
the jython Lib directory in it.
I'm relatively new to Jython so any help/comments are
[ Hugh Rodgers ]
> I have been trying to use the javaos.execute() method for
> some time now, unsuccessfully. I basically wanted to do the
> import os
> os.execute( "f:\tests\HelloWorld" )
> where HelloWorld is my compiled and working Java
os.system( "f:\tests\HelloWorld" )
I believe the execute() method is internal to javaos.py
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
Get latest updates about Open Source Projects, Conferences and News.