From d6904ea5a06204c3477a5763613f51f4226e0546 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 10 Apr 2000 16:27:47 +0000 Subject: [PATCH] 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. --- Tools/idle/idle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/idle/idle.py b/Tools/idle/idle.py index 71fdce56bb1..f42327c9b39 100755 --- a/Tools/idle/idle.py +++ b/Tools/idle/idle.py @@ -4,7 +4,7 @@ import sys import IdleConf -idle_dir = os.path.split(sys.argv[0])[0] +idle_dir = os.path.dirname(IdleConf.__file__) IdleConf.load(idle_dir) # defer importing Pyshell until IdleConf is loaded