account for the module __dict__ being cleared when its module is
This commit is contained in:
parent
73a3f2d4d4
commit
01e3979757
|
@ -271,7 +271,7 @@ def run_path(path_name, init_globals=None, run_name=None):
|
|||
_ModifiedArgv0(path_name):
|
||||
mod_globals = temp_module.module.__dict__
|
||||
return _run_code(code, mod_globals, init_globals,
|
||||
run_name, fname, loader, pkg_name)
|
||||
run_name, fname, loader, pkg_name).copy()
|
||||
finally:
|
||||
try:
|
||||
sys.path.remove(path_name)
|
||||
|
|
Loading…
Reference in New Issue