mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Tell _frozen_importlib to consider bytecode first (#248)
This commit is contained in:
parent
ebb8c85496
commit
98ccbf44b1
7 changed files with 2896 additions and 2887 deletions
11
third_party/python/Python/pylifecycle.c
vendored
11
third_party/python/Python/pylifecycle.c
vendored
|
@ -307,6 +307,17 @@ import_init(PyInterpreterState *interp, PyObject *sysmod)
|
|||
|
||||
/* just add zip!.python/ to sys.path */
|
||||
/* _PyImportZip_Init(); */
|
||||
PyImport_ImportModule("_codecs");
|
||||
PyImport_ImportModule("_collections");
|
||||
PyImport_ImportModule("_functools");
|
||||
PyImport_ImportModule("_heapq");
|
||||
PyImport_ImportModule("_locale");
|
||||
PyImport_ImportModule("_operator");
|
||||
PyImport_ImportModule("_signal");
|
||||
PyImport_ImportModule("_sre");
|
||||
PyImport_ImportModule("_stat");
|
||||
PyImport_ImportModule("errno");
|
||||
PyImport_ImportModule("itertools");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue