commit | d6904ea5a06204c3477a5763613f51f4226e0546 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Mon Apr 10 16:27:47 2000 +0000 |
committer | Fred Drake <fdrake@acm.org> | Mon Apr 10 16:27:47 2000 +0000 |
tree | 2903e851f5a0582bbbe0a0da367c9224b5d441ca | |
parent | 44679590e0414cb80c5cc6a95ea4e560b3770247 [diff] [blame] |
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 71fdce5..f42327c 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