]> granicus.if.org Git - python/commitdiff
Fixes #25360: Search for pythonw.exe when in pyw.exe.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Dec 2015 13:10:51 +0000 (13:10 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Dec 2015 13:10:51 +0000 (13:10 +0000)
PC/launcher.c

index 121aa5bfabe32a528d122c095cc0493873df5903..deaf325cc7c3efca6ea59da727de31ccb30c53c7 100644 (file)
@@ -1254,7 +1254,7 @@ path '%ls'", command);
                              * is no version specification.
                              */
                             debug(L"searching PATH for python executable\n");
-                            cmd = find_on_path(L"python");
+                            cmd = find_on_path(PYTHON_EXECUTABLE);
                             debug(L"Python on path: %ls\n", cmd ? cmd->value : L"<not found>");
                             if (cmd) {
                                 debug(L"located python on PATH: %ls\n", cmd->value);