diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-07-15 22:15:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 22:15:37 (GMT) |
commit | 3b6a8d2455c6897085f4277737b0f9b9a3847c24 (patch) | |
tree | fead6338e413384d16af0a11f8cb4b2d9fefe7f1 /PC | |
parent | 16eea45fbd3b7c3d1b222b7eb7a5d7ee427f70bd (diff) | |
download | cpython-3b6a8d2455c6897085f4277737b0f9b9a3847c24.zip cpython-3b6a8d2455c6897085f4277737b0f9b9a3847c24.tar.gz cpython-3b6a8d2455c6897085f4277737b0f9b9a3847c24.tar.bz2 |
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)
(cherry picked from commit 936a66094591dc0e67d4a60c170148bb700ec016)
Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'PC')
-rw-r--r-- | PC/getpathp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c index cf20b9f..8969fb5 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -717,7 +717,7 @@ static int get_pth_filename(PyCalculatePath *calculate, wchar_t *filename, const _PyPathConfig *pathconfig) { - if (get_dllpath(filename) && + if (!get_dllpath(filename) && !change_ext(filename, filename, L"._pth") && exists(filename)) { |