Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6904ea

Browse files
committed
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.
1 parent 4467959 commit d6904ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/idle/idle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
import IdleConf
66

7-
idle_dir = os.path.split(sys.argv[0])[0]
7+
idle_dir = os.path.dirname(IdleConf.__file__)
88
IdleConf.load(idle_dir)
99

1010
# defer importing Pyshell until IdleConf is loaded

0 commit comments

Comments
 (0)