Commit aae844f4 authored by Robert Bradshaw's avatar Robert Bradshaw

Undo --embed -> __main__ conversion.

parent 5e380c7b
...@@ -27,10 +27,7 @@ def abort_on_errors(node): ...@@ -27,10 +27,7 @@ def abort_on_errors(node):
def parse_stage_factory(context): def parse_stage_factory(context):
def parse(compsrc): def parse(compsrc):
source_desc = compsrc.source_desc source_desc = compsrc.source_desc
if Options.embed: full_module_name = compsrc.full_module_name
full_module_name = "__main__"
else:
full_module_name = compsrc.full_module_name
initial_pos = (source_desc, 1, 0) initial_pos = (source_desc, 1, 0)
saved_cimport_from_pyx, Options.cimport_from_pyx = Options.cimport_from_pyx, False saved_cimport_from_pyx, Options.cimport_from_pyx = Options.cimport_from_pyx, False
scope = context.find_module(full_module_name, pos = initial_pos, need_pxd = 0) scope = context.find_module(full_module_name, pos = initial_pos, need_pxd = 0)
......
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