import confused by contents of working directory
fredrik at pythonware.com
Fri Jun 2 13:32:14 CEST 2006
> Would somebody please explain how to know what is going on when an
> import statement is ambiguous?
there is no ambiguity: python searches through a list of directories, in a given
the list is stored in the sys.path list, which you can inspect and modify freely.
also see the section "The Module Search Path" in the Modules chapter in the
> If the interpreter has several choices about what to import then which one is
the first one on the path.
More information about the Python-list