The python.path ( as of my knowledge )variable is only to point to the classpath requirements of the execution.  For executing the python file you have to provide the full path or atleast the path from the current working directory.

You can use jose words to construct them on the fly.

Regards - Ranjith

jose wrote:
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: jython-users-admin@lists.sourceforge.net
[mailto:jython-users-admin@lists.sourceforge.net] On Behalf Of Bruno
Chauchaix
Sent: Wednesday, March 24, 2004 12:24 AM
To: jython-users@lists.sourceforge.net
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_id70&alloc_id638&op=ick
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users





-------------------------------------------------------
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_id70&alloc_id638&opÌk
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users

  

--
Whatever the mind of man conceives and believes , it will achieve .........