mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
account for the module __dict__ being cleared when its module is
This commit is contained in:
parent
73a3f2d4d4
commit
01e3979757
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue