Commit 8ab84e0d authored by Lucas Bourneuf's avatar Lucas Bourneuf

major bugfix: this one was fucking with me for hours

parent 122d05bc
......@@ -143,7 +143,8 @@ def build_module_from_python_code(pycode:str, **module_options:dict):
print(f'Imported Python error:\n', traceback.format_exc())
# env.update(module_options)
env = {**module_options, **env}
env['source'] = pycode
env['source_code'] = pycode
env['language'] = 'python'
# print('OPTIONS:', module_options, {k: v for k, v in env.items() if not k.startswith('_')})
module = Module.from_dict({k: v for k, v in env.items() if not k.startswith('__')})
# print('MODULE:', {k: v for k, v in vars(module).items() if not k.startswith('_')})
......
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