account for the module __dict__ being cleared when its module is

This commit is contained in:
Benjamin Peterson 2010-10-13 01:04:36 +00:00
parent 73a3f2d4d4
commit 01e3979757
1 changed files with 1 additions and 1 deletions

View File

@ -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)