#! /usr/bin/env python

import os
import sys
import IdleConf

idle_dir = os.path.split(sys.argv[0])[0]
IdleConf.load(idle_dir)

# defer importing Pyshell until IdleConf is loaded
import PyShell
PyShell.main()

@@ -78,29 +78,34 @@
 ath.
-split(sys.argv%5B0%5D)%5B0%5D
+dirname(IdleConf.__file__)
 %0AIdl

Use a better approach to locating IDLE's default configuration, allowing it to be run from anywhere, including through a symlink to the actual idle.py script.