Issue #16972: Have site.addpackage() consider known paths even when

none are explicitly passed in.
This commit is contained in:
Brett Cannon 2013-01-25 13:57:16 -05:00
parent 686e880f20
commit 13252b8770
2 changed files with 4 additions and 1 deletions

View file

@ -146,7 +146,7 @@ def addpackage(sitedir, name, known_paths):
and add that to known_paths, or execute it if it starts with 'import '.
"""
if known_paths is None:
_init_pathinfo()
known_paths = _init_pathinfo()
reset = 1
else:
reset = 0