summaryrefslogtreecommitdiffstats
path: root/Programs/test_frozenmain.py
blob: 53f5fd676a2d157e229671acdb84eabfc5ad3ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Script used to test Py_FrozenMain(): see test_embed.test_frozenmain().
# Run "make regen-test-frozenmain" if you modify this test.

import sys
import _testinternalcapi

print("Frozen Hello World")
print("sys.argv", sys.argv)
config = _testinternalcapi.get_configs()['config']
for key in (
    'program_name',
    'executable',
    'use_environment',
    'configure_c_stdio',
    'buffered_stdio',
):
    print(f"config {key}: {config[key]}")