diff options
author | Victor Stinner <vstinner@python.org> | 2020-11-10 12:21:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 12:21:52 (GMT) |
commit | 9e1b828265e6bfb58f1e0299bd78d8ff6347a2ba (patch) | |
tree | 6062eedbc8405d7a9d20caad2080c41ae01cdd00 /Programs | |
parent | 38811d68caf9b782ea7168479acb09557e126efe (diff) | |
download | cpython-9e1b828265e6bfb58f1e0299bd78d8ff6347a2ba.zip cpython-9e1b828265e6bfb58f1e0299bd78d8ff6347a2ba.tar.gz cpython-9e1b828265e6bfb58f1e0299bd78d8ff6347a2ba.tar.bz2 |
bpo-42260: Compute the path config in the main init (GH-23211)
The path configuration is now computed in the "main" initialization.
The core initialization no longer computes it.
* Add _PyConfig_Read() function to read the configuration without
computing the path configuration.
* pyinit_core() no longer computes the path configuration: it is now
computed by init_interp_main().
* The path configuration output members of PyConfig are now optional:
* executable
* base_executable
* prefix
* base_prefix
* exec_prefix
* base_exec_prefix
* _PySys_UpdateConfig() now skips NULL strings in PyConfig.
* _testembed: Rename test_set_config() to test_init_set_config() for
consistency with other tests.
Diffstat (limited to 'Programs')
-rw-r--r-- | Programs/_testembed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c index cb3a23a..748ea8a 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -1547,7 +1547,7 @@ static int tune_config(void) } -static int test_set_config(void) +static int test_init_set_config(void) { // Initialize core PyConfig config; @@ -1742,7 +1742,7 @@ static struct TestCase TestCases[] = { {"test_init_setpath_config", test_init_setpath_config}, {"test_init_setpythonhome", test_init_setpythonhome}, {"test_init_warnoptions", test_init_warnoptions}, - {"test_init_set_config", test_set_config}, + {"test_init_set_config", test_init_set_config}, {"test_run_main", test_run_main}, {"test_get_argc_argv", test_get_argc_argv}, |