From: jose <jo...@cy...> - 2004-03-27 00:43:02
|
Not sure what you mean by everywhere. If you know where your file is located in relation to script you should be able to use os.getcwd() to construct the correct full path on the fly. Jose -----Original Message----- From: jyt...@li... [mailto:jyt...@li...] On Behalf Of Bruno Chauchaix Sent: Wednesday, March 24, 2004 12:24 AM To: jyt...@li... Subject: [Jython-users] Command execfile("myfile.py") I'm working in window environment, and in the Jython interpreter I use the execfile("myfile.py"). It works only if I use an absolute path for "myfile.py". How can I run "myfile.py" from everywhere wihout the entire path? I tried to modify python.path in the registry without success? Thanks for your help Bruno ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |