|
From: Lars H. N. <lh...@so...> - 2001-09-06 08:02:37
|
Hi Brian, Thank you for your quick reply. It is correct that Java seems to have no notion of a current directory besides the directory in which the jvm was started. This means that a perfect solution is not possible. However, a solution which would make normal (no java.io.... calls) python scripts work correctly is possible. Jython should maintain it own notion of current directory, file names should be changed to absolute before calling java. Jacl (Tcl java) has solved the problem in this way, a find-grep in their sources showed only a handfull of places in which they referred to current directory. Lars brian zimmer wrote: >Lars, > >Java has no facility for os.chdir() so making it available in Jython without >JNI is difficult, if not impossible. > >brian > >----- Original Message ----- >From: "Lars Hupfeldt Nielsen" <lh...@so...> >To: <jyt...@li...> >Sent: Wednesday, September 05, 2001 3:25 AM >Subject: [Jython-dev] Missing os.chdir() > > >>Hi. >> >>The 'chdir()' function is missing from the os module, this is a show >>stopper for my application. >>Is there any other way to do a chdir()? >>Calling 'java.lang.System.setProperty("user.dir", dir.toString());' has >>no effect. >> >>Is there any plan for the implementation of this function? >> >> >>Regards >>Lars Hupfeldt Nielsen. >> >> >> >> >>_______________________________________________ >>Jython-dev mailing list >>Jyt...@li... >>https://lists.sourceforge.net/lists/listinfo/jython-dev >> > > |