Keep precedence for directories. Noticed by Brett Cannon.
This commit is contained in:
parent
4d6494b6c4
commit
319b990f1d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue