MCPcopy Index your code
hub / github.com/python/cpython / import_main_path

Function import_main_path

Lib/multiprocessing/spawn.py:303–307  ·  view source on GitHub ↗

Set sys.modules['__main__'] to module at main_path

(main_path)

Source from the content-addressed store, hash-verified

301
302
303def import_main_path(main_path):
304 '''
305 Set sys.modules['__main__'] to module at main_path
306 '''
307 _fixup_main_from_path(main_path)

Callers

nothing calls this directly

Calls 1

_fixup_main_from_pathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…