Keep precedence for directories. Noticed by Brett Cannon.

This commit is contained in:
Martin v. Löwis 2010-05-31 07:33:53 +00:00
parent 4d6494b6c4
commit 319b990f1d
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ encountered. In summary, the process import a package foo works like
this:
1. sys.path is search for a directory foo, or a file foo.<ext>.
If a file is found, it is treated as a module, and imported.
If a file is found and no directory, it is treated as a module, and imported.
2. if it is a directory, it checks for \*.pth files. If it finds
any, a package is created, and its __path__ is extended.
3. The __init__ module is imported; this import will search the