summaryrefslogtreecommitdiffstats
path: root/PC/getpathp.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-07-15 22:14:48 (GMT)
committerGitHub <noreply@github.com>2020-07-15 22:14:48 (GMT)
commit28e93dd2b26c460424acbebd00d8b943abbbea17 (patch)
tree278eabe2c078eb69918cb7878ff8d831ffcceb15 /PC/getpathp.c
parent4a02da4f95cfff679e38a13ca0f44d660c5669b5 (diff)
downloadcpython-28e93dd2b26c460424acbebd00d8b943abbbea17.zip
cpython-28e93dd2b26c460424acbebd00d8b943abbbea17.tar.gz
cpython-28e93dd2b26c460424acbebd00d8b943abbbea17.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/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))
{