Commit 31e73600 authored by Stefan Behnel's avatar Stefan Behnel

restored code in Symtab.py that fixed the module name for package compilation - still needed

parent 9797f397
......@@ -971,7 +971,13 @@ class ModuleScope(Scope):
self.parent_module = parent_module
outer_scope = Builtin.builtin_scope
Scope.__init__(self, name, outer_scope, parent_module)
self.module_name = EncodedString(name)
if name != "__init__":
self.module_name = name
else:
# Treat Spam/__init__.pyx specially, so that when Python loads
# Spam/__init__.so, initSpam() is defined.
self.module_name = parent_module.module_name
self.module_name = EncodedString(self.module_name)
self.context = context
self.module_cname = Naming.module_cname
self.module_dict_cname = Naming.moddict_cname
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment