We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4759ba6 commit a264637Copy full SHA for a264637
Python/frozen.c
@@ -84,7 +84,6 @@ static const struct _frozen stdlib_modules[] = {
84
{"genericpath", _Py_M__genericpath, (int)sizeof(_Py_M__genericpath), false},
85
{"ntpath", _Py_M__ntpath, (int)sizeof(_Py_M__ntpath), false},
86
{"posixpath", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath), false},
87
- {"os.path", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath), false},
88
{"os", _Py_M__os, (int)sizeof(_Py_M__os), false},
89
{"site", _Py_M__site, (int)sizeof(_Py_M__site), false},
90
{"stat", _Py_M__stat, (int)sizeof(_Py_M__stat), false},
@@ -116,7 +115,6 @@ const struct _frozen *_PyImport_FrozenTest = test_modules;
116
115
static const struct _module_alias aliases[] = {
117
{"_frozen_importlib", "importlib._bootstrap"},
118
{"_frozen_importlib_external", "importlib._bootstrap_external"},
119
- {"os.path", "posixpath"},
120
{"__hello_alias__", "__hello__"},
121
{"__phello_alias__", "__hello__"},
122
{"__phello_alias__.spam", "__hello__"},
Tools/build/freeze_modules.py
@@ -63,9 +63,6 @@
63
'genericpath',
64
'ntpath',
65
'posixpath',
66
- # We must explicitly mark os.path as a frozen module
67
- # even though it will never be imported.
68
- f'{OS_PATH} : os.path',
69
'os',
70
'site',
71
'stat',
0 commit comments