From: Oti <oh...@ya...> - 2003-08-06 21:02:36
|
[ Sachin G. Pawar ] > When I try to run the following test.py module in java through the > jython > interpreter, I get the error "ImportError: no module named javaos" > > --- test.py ---- > > import os > > class ScriptLocatorHelper: > > def __init__ (self): > pass > > def compile (self, map): > os.command( "some.bat" ) > ----------------------------------------------------- > > Any help or pointer... ???? Hi Sachin, make sure that you set the -Dpython.path= option pointing to your /Lib directory, when you invoke your java program. Second, use os.system instead of os.command (which does not exist, AFAIK) Good luck, Oti. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |