[issue31349] Embedded initialization ignores Py_SetProgramName()
Christian Ullrich
report at bugs.python.org
Tue Sep 5 08:54:08 EDT 2017
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 <report at bugs.python.org>
<http://bugs.python.org/issue31349>
_______________________________________
More information about the Python-bugs-list
mailing list