From: Scott K. <sc...@sc...> - 2001-06-17 04:09:35
|
Sorry for the crosspost, but I am not sure if Jython or BSF is the place to ask. I have a server application that uses BSF with Tomcat to do some custom scripting (Jython). When the scripts reside in what Tomcat considers the root (working?) directory, everything runs just fine. The scripts just get executed by their name with no path information required. I need to move these scripts into sub-directories under that root. There is no problem invoking a script in any sub-directory, but the script cannot 'see' the other required scripts in the same directory for it's imports. The executed script is looking for the other scripts in the previously mentioned root directory no matter where it resides. How to force the Jython interpreter to have another working directory on a per-session basis? Thanks. -- Scott Knight mailto:sc...@sc... |