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

Function main

Programs/_freeze_module.py:54–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
54def main():
55 if len(sys.argv) != 4:
56 sys.exit("need to specify the name, input and output paths\n")
57
58 name = sys.argv[1]
59 inpath = sys.argv[2]
60 outpath = sys.argv[3]
61
62 text = read_text(inpath)
63 marshalled = compile_and_marshal(name, text)
64 write_frozen(outpath, inpath, name, marshalled)
65
66
67if __name__ == "__main__":

Callers 1

_freeze_module.pyFile · 0.70

Calls 4

compile_and_marshalFunction · 0.85
write_frozenFunction · 0.85
read_textFunction · 0.70
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…