Re: How can I import functions from another python file
- From: "Gabriel Genellina" <gagsl-py2@xxxxxxxxxxxx>
- Date: Mon, 09 Apr 2007 18:58:31 -0300
En Mon, 09 Apr 2007 18:06:11 -0300, yinglcs@xxxxxxxxx <yinglcs@xxxxxxxxx> escribió:
i have 2 python files in *different directory* , how can I import
python functions from 1 python file to another?
See the tutorial about modules, packages, and the module search path: http://docs.python.org/tut/node8.html
You can extend the search path using .pth files: http://docs.python.org/lib/module-site.html
(but consider using packages instead of cluttering your search path with infinite entries)
--
Gabriel Genellina
.
- References:
- How can I import functions from another python file
- From: yinglcs@xxxxxxxxx
- How can I import functions from another python file
- Prev by Date: Re: recursively archiving files
- Next by Date: Re: MySQL Insert Unicode Problem
- Previous by thread: Re: How can I import functions from another python file
- Next by thread: recursively archiving files
- Index(es):