Commit 762d399b authored by Marius Wachtler's avatar Marius Wachtler

Fix 'resource_filename() only supported for .egg, not .zip' error.

parent 0e2a4c25
......@@ -629,9 +629,9 @@ extern "C" PyObject* PyImport_ExecCodeModuleEx(char* name, PyObject* co, char* p
if (module == NULL)
return NULL;
module->setattr("__file__", boxString(pathname), NULL);
AST_Module* ast = parse_string(code->data());
compileAndRunModule(ast, module);
module->setattr("__file__", boxString(pathname), NULL);
return module;
} catch (ExcInfo e) {
removeModule(name);
......
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