|
From: Laurent T. <Lau...@ge...> - 2001-06-18 07:57:12
|
Hello, I installed jython-20 (and jython-21a1) and try to use the os.popen() from os module but I receive the following message: *sys-package-mgr*: processing new jar, 'C:\Program Files\Python20\jython-21\jython.jar' *sys-package-mgr*: processing new jar, 'C:\Program Files\JavaSoft\JRE\1.2\lib\rt.jar' *sys-package-mgr*: processing new jar, 'C:\Program Files\JavaSoft\JRE\1.2\lib\i18n.jar' *sys-package-mgr*: processing new jar, 'C:\Program Files\JavaSoft\JRE\1.2\lib\ext\iiimp.jar' Traceback (innermost last): File "testuptodate.py", line 45, in ? File "testuptodate.py", line 24, in main AttributeError: class 'org.python.modules.os' has no attribute 'popen' when executing the source: import os, os.path command = 'java -version' file = os.popen (command, 'r') Do you ever seem that before ? Can I use the os.popen() as I used it in Cpython ? Thanks for help, Laurent, ------------------------------------ Laurent TCHERNIACK Indus. Manager GEMPLUS Software - Application lau...@ge... Tel: 04 42 36 66 72 ------------------------------------ |