]> granicus.if.org Git - python/commit
bpo-38234: Add test_init_setpath_config() to test_embed (GH-16402)
authorVictor Stinner <vstinner@redhat.com>
Thu, 26 Sep 2019 00:22:35 +0000 (02:22 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2019 00:22:35 +0000 (02:22 +0200)
commit8bf39b606ef7b02c0279a80789f3c4824b0da5e9
tree03064cc01948ed71ddf760e951436507f621d306
parentdf69e75edcc08475bc9a57a5a76df8a45bfc3c34
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.
Doc/c-api/init_config.rst
Include/internal/pycore_pathconfig.h
Lib/test/test_embed.py
PC/getpathp.c
Programs/_testembed.c
Python/pathconfig.c