Lines Matching refs:run_name
201 run_name=None, alter_sys=False): argument
207 if run_name is None:
208 run_name = mod_name
210 return _run_module_code(code, init_globals, run_name, mod_spec)
213 return _run_code(code, {}, init_globals, run_name, mod_spec)
234 def _get_code_from_file(run_name, fname): argument
245 def run_path(path_name, init_globals=None, run_name=None): argument
255 if run_name is None:
256 run_name = "<run_path>"
257 pkg_name = run_name.rpartition(".")[0]
267 code, fname = _get_code_from_file(run_name, path_name)
268 return _run_module_code(code, init_globals, run_name,
282 with _TempModule(run_name) as temp_module, \
286 run_name, mod_spec, pkg_name).copy()