commit | 13252b877016aa5380f4ae36fb024671c2ea77db | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Fri Jan 25 13:57:16 2013 -0500 |
committer | Brett Cannon <brett@python.org> | Fri Jan 25 13:57:16 2013 -0500 |
tree | b3648fab23f5a4bdb94f58607720c2a66dc918e7 | |
parent | 686e880f20a38918c8341aaf6bc14420890d36a2 [diff] [blame] |
Issue #16972: Have site.addpackage() consider known paths even when none are explicitly passed in.
diff --git a/Lib/site.py b/Lib/site.py index c4c8ea0..732e1c4 100644 --- a/Lib/site.py +++ b/Lib/site.py
@@ -146,7 +146,7 @@ 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