Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49435c commit e9e20a9Copy full SHA for e9e20a9
1 file changed
Tools/freeze/freeze.py
@@ -130,9 +130,6 @@ def main():
130
131
fail_import = exclude[:]
132
133
- # modules that are imported by the Python runtime
134
- implicits = ["site", "exceptions"]
135
-
136
# output files
137
frozen_c = 'frozen.c'
138
config_c = 'config.c'
@@ -202,6 +199,12 @@ def main():
202
199
f,r = a.split("=", 2)
203
200
replace_paths.append( (f,r) )
204
201
+ # modules that are imported by the Python runtime
+ implicits = []
+ for module in ('site', 'exceptions',):
205
+ if module not in exclude:
206
+ implicits.append(module)
207
+
208
# default prefix and exec_prefix
209
if not exec_prefix:
210
if prefix:
0 commit comments