mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #16972: Have site.addpackage() consider known paths even when
none are explicitly passed in.
This commit is contained in:
parent
686e880f20
commit
13252b8770
2 changed files with 4 additions and 1 deletions
|
@ -146,7 +146,7 @@ def addpackage(sitedir, name, known_paths):
|
||||||
and add that to known_paths, or execute it if it starts with 'import '.
|
and add that to known_paths, or execute it if it starts with 'import '.
|
||||||
"""
|
"""
|
||||||
if known_paths is None:
|
if known_paths is None:
|
||||||
_init_pathinfo()
|
known_paths = _init_pathinfo()
|
||||||
reset = 1
|
reset = 1
|
||||||
else:
|
else:
|
||||||
reset = 0
|
reset = 0
|
||||||
|
|
|
@ -218,6 +218,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #180022: Have site.addpackage() consider already known paths even when
|
||||||
|
none are explicitly passed in. Bug report and fix by Kirill.
|
||||||
|
|
||||||
- Issue #1602133: on Mac OS X a shared library build (``--enable-shared``)
|
- Issue #1602133: on Mac OS X a shared library build (``--enable-shared``)
|
||||||
now fills the ``os.environ`` variable correctly.
|
now fills the ``os.environ`` variable correctly.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue