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 DSM.Ranjith Kumar other posts by this author
Mar 29 2004 4:43AM messages near this date
RE: [Jython-users] Command execfile("myfile.py") | RE: [Jython-users] how to get the definiton of a java method in j ython?
The python.path ( as of my knowledge )variable is only to point to the=20
classpath requirements of the execution.  For executing the python file=20
you have to provide the full path or atleast the path from the current=20
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@[...].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_id=1470&alloc_id638&op=3Dick
> _______________________________________________
> 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_id=1470&alloc_id638&op=CCk
> _______________________________________________
> Jython-users mailing list
> Jython-users@[...].net
> https://lists.sourceforge.net/lists/listinfo/jython-users
> 
>  =20
> 

--=20
Whatever the mind of man conceives and believes , it will achieve .......=
..
Attachments:
unknown1

Thread:
Bruno Chauchaix
jose
DSM.Ranjith Kumar

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