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