summaryrefslogtreecommitdiffstats
path: root/Programs/test_frozenmain.py
blob: 928b9ea816accbd68752cea9453565d001794296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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']
print(f"config program_name: {config['program_name']}")
print(f"config executable: {config['executable']}")
print(f"config use_environment: {config['use_environment']}")