summaryrefslogtreecommitdiffstats
path: root/PC/getpathp.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2020-07-15 21:56:49 (GMT)
committerGitHub <noreply@github.com>2020-07-15 21:56:49 (GMT)
commit936a66094591dc0e67d4a60c170148bb700ec016 (patch)
treebc7baca1fdac8311369908c55f45f213a7fadb32 /PC/getpathp.c
parentaf4eda46d1538b1da700a86588bdb94b0a4d1ff2 (diff)
downloadcpython-936a66094591dc0e67d4a60c170148bb700ec016.zip
cpython-936a66094591dc0e67d4a60c170148bb700ec016.tar.gz
cpython-936a66094591dc0e67d4a60c170148bb700ec016.tar.bz2
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)
Diffstat (limited to 'PC/getpathp.c')
-rw-r--r--PC/getpathp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index 0939c5f..53da3a6 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))
{