From: Fred Drake Date: Mon, 10 Apr 2000 16:27:47 +0000 (+0000) Subject: Use a better approach to locating IDLE's default configuration, X-Git-Tag: v1.6a2~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6904ea5a06204c3477a5763613f51f4226e0546;p=python 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. --- diff --git a/Tools/idle/idle.py b/Tools/idle/idle.py index 71fdce56bb..f42327c9b3 100755 --- a/Tools/idle/idle.py +++ b/Tools/idle/idle.py @@ -4,7 +4,7 @@ import os 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