MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / _run_module_as_main

Function _run_module_as_main

Lib/runpy.py:136–162  ·  view source on GitHub ↗

Runs the designated module in the __main__ namespace Note that the executed module will have full access to the __main__ namespace. If this is not desirable, the run_module() function should be used to run the module code in a fresh namespace. At the very least, these v

(mod_name, alter_argv=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

runpy.pyFile · 0.85

Calls 6

_get_module_detailsFunction · 0.85
_get_main_module_detailsFunction · 0.85
strFunction · 0.85
_run_codeFunction · 0.85
rpartitionMethod · 0.80
exitMethod · 0.45

Tested by

no test coverage detected