2021-05-18 06:40:37 +00:00
|
|
|
# Script used to test Py_FrozenMain(): see test_embed.test_frozenmain().
|
|
|
|
# Run "make regen-test-frozenmain" if you modify this test.
|
|
|
|
|
2021-05-17 21:48:35 +00:00
|
|
|
import sys
|
|
|
|
import _testinternalcapi
|
|
|
|
|
|
|
|
print("Frozen Hello World")
|
|
|
|
print("sys.argv", sys.argv)
|
|
|
|
config = _testinternalcapi.get_configs()['config']
|
2021-05-20 10:08:05 +00:00
|
|
|
for key in (
|
|
|
|
'program_name',
|
|
|
|
'executable',
|
|
|
|
'use_environment',
|
|
|
|
'configure_c_stdio',
|
|
|
|
'buffered_stdio',
|
|
|
|
):
|
|
|
|
print(f"config {key}: {config[key]}")
|