Re: How can I import functions from another python file



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

.