1 # Script used to test Py_FrozenMain(): see test_embed.test_frozenmain().
2 # Run "make regen-test-frozenmain" if you modify this test.
3
4 import sys
5 import _testinternalcapi
6
7 print("Frozen Hello World")
8 print("sys.argv", sys.argv)
9 config = _testinternalcapi.get_configs()['config']
10 for key in (
11 'program_name',
12 'executable',
13 'use_environment',
14 'configure_c_stdio',
15 'buffered_stdio',
16 ):
17 print(f"config {key}: {config[key]}")