summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/runpy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/runpy.py b/Lib/runpy.py
index 06c5a87b40..f635c4bf1c 100644
--- a/Lib/runpy.py
+++ b/Lib/runpy.py
@@ -261,7 +261,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)