Skip to content

Commit e7a9d8d

Browse files
FFY00ebonnal
authored andcommitted
pythonGH-89435: os.path should not be a frozen module (python#126924)
1 parent 2df53fe commit e7a9d8d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

Python/frozen.c

-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static const struct _frozen stdlib_modules[] = {
8484
{"genericpath", _Py_M__genericpath, (int)sizeof(_Py_M__genericpath), false},
8585
{"ntpath", _Py_M__ntpath, (int)sizeof(_Py_M__ntpath), false},
8686
{"posixpath", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath), false},
87-
{"os.path", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath), false},
8887
{"os", _Py_M__os, (int)sizeof(_Py_M__os), false},
8988
{"site", _Py_M__site, (int)sizeof(_Py_M__site), false},
9089
{"stat", _Py_M__stat, (int)sizeof(_Py_M__stat), false},
@@ -116,7 +115,6 @@ const struct _frozen *_PyImport_FrozenTest = test_modules;
116115
static const struct _module_alias aliases[] = {
117116
{"_frozen_importlib", "importlib._bootstrap"},
118117
{"_frozen_importlib_external", "importlib._bootstrap_external"},
119-
{"os.path", "posixpath"},
120118
{"__hello_alias__", "__hello__"},
121119
{"__phello_alias__", "__hello__"},
122120
{"__phello_alias__.spam", "__hello__"},

Tools/build/freeze_modules.py

-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
'genericpath',
6464
'ntpath',
6565
'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',
6966
'os',
7067
'site',
7168
'stat',

0 commit comments

Comments
 (0)