summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-27 13:59:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-27 13:59:35 (GMT)
commit206bd57355a1fc1330c4b36a229cba9712d1edb6 (patch)
tree67636ee4fea744a37e3461c06a63c4ef20e69e5a /Mac/Tools
parent60aa4ccdc0c2be5dddc15d20e9656aca21eaba86 (diff)
downloadcpython-206bd57355a1fc1330c4b36a229cba9712d1edb6.zip
cpython-206bd57355a1fc1330c4b36a229cba9712d1edb6.tar.gz
cpython-206bd57355a1fc1330c4b36a229cba9712d1edb6.tar.bz2
When we're freezing to sourcecode and one of the modules is a dynamic module that is in a package we freeze that module at toplevel (outside any package). Not optimal, but there is little more we can do as config.c has no way to specify a builtin module has to be dumped into a package.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/macfreeze/macgen_src.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Tools/macfreeze/macgen_src.py b/Mac/Tools/macfreeze/macgen_src.py
index c3e4541..089727a 100644
--- a/Mac/Tools/macfreeze/macgen_src.py
+++ b/Mac/Tools/macfreeze/macgen_src.py
@@ -88,6 +88,10 @@ def generate(output, module_dict, debug=0, with_ifdef=0):
c_modules = []
for module in module_dict.keys():
if module_dict[module].gettype() in ('builtin', 'dynamic'):
+ # if the module is in a package we have no choice but
+ # to put it at the toplevel in the frozen application.
+ if '.' in module:
+ module = module.split('.')[-1]
c_modules.append(module)
ifp = open(CONFIG_TEMPLATE)
ofp = open(config_name, 'w')