diff options
author | Fred Drake <fdrake@acm.org> | 2000-04-10 16:27:47 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-04-10 16:27:47 (GMT) |
commit | d6904ea5a06204c3477a5763613f51f4226e0546 (patch) | |
tree | 2903e851f5a0582bbbe0a0da367c9224b5d441ca /Tools/idle | |
parent | 44679590e0414cb80c5cc6a95ea4e560b3770247 (diff) | |
download | cpython-d6904ea5a06204c3477a5763613f51f4226e0546.zip cpython-d6904ea5a06204c3477a5763613f51f4226e0546.tar.gz cpython-d6904ea5a06204c3477a5763613f51f4226e0546.tar.bz2 |
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.
Diffstat (limited to 'Tools/idle')
-rwxr-xr-x | Tools/idle/idle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/idle/idle.py b/Tools/idle/idle.py index 71fdce5..f42327c 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 |