Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-38234: Fix _PyConfig_InitPathConfig() #16335

Merged
merged 3 commits into from
Sep 23, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Elaborate pathconfig_calculate() comment
  • Loading branch information
vstinner committed Sep 23, 2019
commit 70cece74f9d35d331aca824b10e87cde82f070d9
13 changes: 10 additions & 3 deletions Python/pathconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,20 @@ config_init_module_search_paths(PyConfig *config, _PyPathConfig *pathconfig)

/* Calculate the path configuration:

- base_executable (Windows only)
- exec_prefix
- isolated (Windows only)
- module_search_path
- prefix
- program_full_path
- site_import (Windows only)

On Windows, more fields are calculated:

- base_executable
- isolated
- site_import

On other platforms, isolated and site_import are left unchanged, and
_PyConfig_InitPathConfig() copies executable to base_executable (if it's not
set).

Priority, highest to lowest:

Expand Down