summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-13 01:04:36 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-13 01:04:36 (GMT)
commit01e397975795bdb102221fb5e977fef052cc88f3 (patch)
tree1172c42bdc63b1ad316677686e5b9f01a6e0e9f6 /Lib
parent73a3f2d4d432fafb3610003e761874ed5f61a72e (diff)
downloadcpython-01e397975795bdb102221fb5e977fef052cc88f3.zip
cpython-01e397975795bdb102221fb5e977fef052cc88f3.tar.gz
cpython-01e397975795bdb102221fb5e977fef052cc88f3.tar.bz2
account for the module __dict__ being cleared when its module is
Diffstat (limited to 'Lib')
-rw-r--r--Lib/runpy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/runpy.py b/Lib/runpy.py
index f251081..4738df3 100644
--- a/Lib/runpy.py
+++ b/Lib/runpy.py
@@ -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)