From: Glen S. <gl...@en...> - 2001-07-10 13:18:37
|
> > Where is the 'os' module located? (I can't find it in Lib) > > /Kevin [glen@daibutsu glen]$ jython Jython 2.1a1 on java1.3.0_02 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import os >>> dir(os) ['File', '__depends__', '__doc__', '__file__', '__name__', '_exit', 'classDictInit', 'curdir', 'defpath', 'environ', 'error', 'getcwd', 'java', 'javapath', 'linesep', 'listdir', 'makedirs', 'mkdir', 'name', 'pardir', 'path', 'pathsep', 'remove', 'rename', 'rmdir', 'sep', 'stat', 'unlink'] >>> You'll notice that there is no popen defined in Jython's os module. Your best bet is to approximate it in Java using Runtime and Process, or remove that functionality from your code... ;-) |