Tell _frozen_importlib to consider bytecode first (#248)

This commit is contained in:
Gautham 2021-08-18 10:37:27 +05:30 committed by GitHub
parent c70422586a
commit ace523c79b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 2896 additions and 2887 deletions

View file

@ -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");
}