summaryrefslogtreecommitdiffstats
path: root/Tools/idle/idle.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-04-10 16:27:47 (GMT)
committerFred Drake <fdrake@acm.org>2000-04-10 16:27:47 (GMT)
commitd6904ea5a06204c3477a5763613f51f4226e0546 (patch)
tree2903e851f5a0582bbbe0a0da367c9224b5d441ca /Tools/idle/idle.py
parent44679590e0414cb80c5cc6a95ea4e560b3770247 (diff)
downloadcpython-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/idle.py')
-rwxr-xr-xTools/idle/idle.py2
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