ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Jython-users
Jython-users
RE: [Jython-users] Command execfile("myfile.py")
by jose other posts by this author
Mar 27 2004 12:42AM messages near this date
[Jython-users] Command execfile("myfile.py") | Re: [Jython-users] Command execfile("myfile.py")
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@[...].net
[mailto:jython-users-admin@[...].net] On Behalf Of Bruno
Chauchaix
Sent: Wednesday, March 24, 2004 12:24 AM
To: jython-users@[...].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@[...].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@[...].net
https://lists.sourceforge.net/lists/listinfo/jython-users
Thread:
Bruno Chauchaix
jose
DSM.Ranjith Kumar

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved