gherron at islandtraining.com
Fri Jul 6 09:07:30 CEST 2007
> Hey guys,
> I'm rather new to python and i'm have trouble(as usual)
> I want to know if it is possible to change where 'import' looks....
> this will save me clogging up my python directory
Easily done. The value of sys.path is a list of directories that import
looks through to satisfy an import. Just import sys and append a new
directory to sys.path.
// Then import code from your directory.
More information about the Python-list