https://github.com/python/cpython
Raw File
Tip revision: 8b6ee5ba3bd08368ba3c763cea28ce1464a88e62 authored by Pablo Galindo on 02 October 2023, 13:26:51 UTC
Python 3.11.6
Tip revision: 8b6ee5b
test_frozenmain.py
# 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]}")
back to top