Showing posts with label batch. Show all posts
Showing posts with label batch. Show all posts

Tuesday, October 19, 2010

IDLE not working in ActivePython

The problem is that "idle.bat" is missing some double-quotes. If you have installed Python in "C:\Programs files\Python27" instead of "C:\Python27\", "idle.bat" will fail to execute "idle.pyw".

Copy and paste the follow 2 lines in "C:\Program Files\Python27\Lib\idlelib\idle.bat" (or wherever "idle.bat" is located) to fix it:


@echo off
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