mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-38234: Add test_init_setpath_config() to test_embed (GH-16402)
* Add test_embed.test_init_setpath_config(): test Py_SetPath() with PyConfig. * test_init_setpath() and test_init_setpythonhome() no longer call Py_SetProgramName(), but use the default program name. * _PyPathConfig: isolated, site_import and base_executable fields are now only available on Windows. * If executable is set explicitly in the configuration, ignore calculated base_executable: _PyConfig_InitPathConfig() copies executable to base_executable. * Complete path config documentation.
This commit is contained in:
parent
df69e75edc
commit
8bf39b606e
6 changed files with 132 additions and 52 deletions
|
|
@ -1099,11 +1099,11 @@ calculate_free(PyCalculatePath *calculate)
|
|||
- __PYVENV_LAUNCHER__ environment variable
|
||||
- GetModuleFileNameW(NULL): fully qualified path of the executable file of
|
||||
the current process
|
||||
- .pth configuration file
|
||||
- ._pth configuration file
|
||||
- pyvenv.cfg configuration file
|
||||
- Registry key "Software\Python\PythonCore\X.Y\PythonPath"
|
||||
of HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER where X.Y is the Python
|
||||
version (major.minor).
|
||||
of HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE where X.Y is the Python
|
||||
version.
|
||||
|
||||
Outputs, 'pathconfig' fields:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue