mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
don't append the bytecode suffix to the source suffixes global
This commit is contained in:
parent
8f46d655b9
commit
ef5a4636d0
1 changed files with 1 additions and 2 deletions
|
@ -126,8 +126,7 @@ def load_compiled(name, pathname, file=None):
|
||||||
# XXX deprecate
|
# XXX deprecate
|
||||||
def load_package(name, path):
|
def load_package(name, path):
|
||||||
if os.path.isdir(path):
|
if os.path.isdir(path):
|
||||||
extensions = _bootstrap._SOURCE_SUFFIXES
|
extensions = _bootstrap._SOURCE_SUFFIXES + [_bootstrap._BYTECODE_SUFFIX]
|
||||||
extensions += [_bootstrap._BYTECODE_SUFFIX]
|
|
||||||
for extension in extensions:
|
for extension in extensions:
|
||||||
path = os.path.join(path, '__init__'+extension)
|
path = os.path.join(path, '__init__'+extension)
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue