How can I import a py script by its absolute path name?
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Thu Jul 14 10:43:02 EDT 2005
% python
Python 2.4.1 (#1, Apr 7 2005, 11:06:30) [C] on osf1V5
Type "help", "copyright", "credits" or "license" for more information.
>>> execfile.__doc__
'execfile(filename[, globals[, locals]])\n\nRead and execute a Python script
from a file.\nThe globals and locals are dictionaries, defaulting to the
current\nglobals and locals. If only globals is given, locals defaults to it.'
>>>
--- could ildg <could.net at gmail.com> wrote:
> I want to import c:\xxx\yyy\zzz.py into my programme,
> What should I do?
> Thank you~
> --
> http://mail.python.org/mailman/listinfo/python-list
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Python-list
mailing list