recently, I started using wlst as a jython-module, so I could use it in external functions.
However, since that moment, I can't use the os module anymore. Specifically, I need os.listdir(), which appareantly does not exist in the supplied version for jython.
Any known workarounds?
We use Oracle 11G SOA Suite. Under Unix, I have tried to use os.chdir and noticed I get the >> OSError: [Errno 0] chdir not supported in Java:
Isn't the os library written in Java under Jython ? Looks like it is a native call to the OS ? I guess its the case with Peter's observation as well.
No sure why your not able to import os module. Environmental settings, classpaths? I have imported os and os.path
Once your able to access os module...
I tried this and it returns a list os.listdir(path='myPathString')
e.g print os.listdir(path='.')
gives me a list of files under the current directory. I had to provide the optional parameter Path within listdir.