mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-10 03:40:29 +00:00
revert file loader order back to source-first
In #248 we changed _bootstrap_external to check for bytecode first, and then check for source files when loading in the import process. Now that we have our own meta_path entry, this change can be undone.
This commit is contained in:
parent
7d5dbe2925
commit
f242ef4a09
1 changed files with 1 additions and 1 deletions
|
@ -1349,7 +1349,7 @@ def _get_supported_file_loaders():
|
|||
# extensions = ExtensionFileLoader, _imp.extension_suffixes()
|
||||
source = SourceFileLoader, SOURCE_SUFFIXES
|
||||
bytecode = SourcelessFileLoader, BYTECODE_SUFFIXES
|
||||
return [bytecode, source] #, extensions]
|
||||
return [source, bytecode] #, extensions]
|
||||
|
||||
def _setup(_bootstrap_module):
|
||||
"""Setup the path-based importers for importlib by importing needed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue