Commit 47893f47 authored by Matias Guijarro's avatar Matias Guijarro
Browse files

session: remove setting __file__ for setup script execution (quick fix of previous commit)

parent d1ac44e2
......@@ -632,13 +632,9 @@ class Session:
env_dict["load_script"] = self.load_script
_file_ = env_dict["__file__"]
env_dict["__file__"] = self.setup_file
code = compile(, self.setup_file, "exec")
exec(code, env_dict)
env_dict["__file__"] = _file_
for obj_name, obj in env_dict.items():
setattr(setup_globals, obj_name, obj)
Supports Markdown
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