summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-11-21 23:45:10 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-11-21 23:45:10 (GMT)
commitf991642efec091087f9261d82ff5502d61d21688 (patch)
tree5b2b66ee03a0e6e30eef58a0cbd39fcba7a27a34 /Lib/idlelib
parent0ef956f9974c649bfc64550f8597cec13cfe21f8 (diff)
downloadcpython-f991642efec091087f9261d82ff5502d61d21688.zip
cpython-f991642efec091087f9261d82ff5502d61d21688.tar.gz
cpython-f991642efec091087f9261d82ff5502d61d21688.tar.bz2
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.
Diffstat (limited to 'Lib/idlelib')
-rwxr-xr-xLib/idlelib/idle.bat5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/idlelib/idle.bat b/Lib/idlelib/idle.bat
index c1b5fd2..4e67868 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