From: Brian Curtin Date: Sun, 21 Nov 2010 23:45:10 +0000 (+0000) Subject: Fix #6378. Start IDLE using the proper version of Python based on the directory X-Git-Tag: v3.2b1~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f991642efec091087f9261d82ff5502d61d21688;p=python Fix #6378. Start IDLE using the proper version of Python based on the directory tree that idle.bat resides in. Works with any/all versions of Python installed concurrently. --- diff --git a/Lib/idlelib/idle.bat b/Lib/idlelib/idle.bat index c1b5fd28ac..4e67868276 100755 --- a/Lib/idlelib/idle.bat +++ b/Lib/idlelib/idle.bat @@ -1,3 +1,4 @@ @echo off -rem Working IDLE bat for Windows - uses start instead of absolute pathname -start idle.pyw %1 %2 %3 %4 %5 %6 %7 %8 %9 +rem Start IDLE using the appropriate Python interpreter +set CURRDIR=%~dp0 +start %CURRDIR%..\..\pythonw.exe %CURRDIR%idle.pyw %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/Misc/NEWS b/Misc/NEWS index f8dab00d2a..b51a644e00 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -32,6 +32,9 @@ Core and Builtins Library ------- +- Issue #6378: idle.bat now runs with the appropriate Python version rather than + the system default. Patch by Sridhar Ratnakumar. + - Issue #10470: 'python -m unittest' will now run test discovery by default, when no extra arguments have been provided.