Christian Ullrich added the comment: That should have been
diff --git a/PC/getpathp.c b/PC/getpathp.c index e7be704a9a..abb5e54c9f 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -443,8 +443,7 @@ get_progpath(void) #else dllpath[0] = 0; #endif - if (GetModuleFileNameW(NULL, progpath, MAXPATHLEN)) - return; + GetModuleFileNameW(NULL, progpath, MAXPATHLEN); if (prog == NULL || *prog == '\0') prog = L"python"; instead, of course, without the negation. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31349> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com