Dan Willemsen | 707542f | 2018-11-29 21:39:59 -0800 | [diff] [blame] | 1 | import runpy |
2 | import sys | ||||
3 | |||||
4 | sys.argv[0] = __loader__.archive | ||||
5 | |||||
6 | # Set sys.executable to None. The real executable is available as | ||||
7 | # sys.argv[0], and too many things assume sys.executable is a regular Python | ||||
8 | # binary, which isn't available. By setting it to None we get clear errors | ||||
9 | # when people try to use it. | ||||
10 | sys.executable = None | ||||
11 | |||||
12 | runpy._run_module_as_main("ENTRY_POINT", alter_argv=False) |