diff options
author | Steve Dower <steve.dower@python.org> | 2020-07-15 22:56:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 22:56:49 +0100 |
commit | 936a66094591dc0e67d4a60c170148bb700ec016 (patch) | |
tree | bc7baca1fdac8311369908c55f45f213a7fadb32 /PC | |
parent | bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call (GH-... (diff) | |
download | cpython-936a66094591dc0e67d4a60c170148bb700ec016.tar.gz cpython-936a66094591dc0e67d4a60c170148bb700ec016.tar.bz2 cpython-936a66094591dc0e67d4a60c170148bb700ec016.zip |
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)
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 0939c5fa984..53da3a6d05f 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -669,7 +669,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)) { |