mirror of https://github.com/python/cpython.git
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.
This commit is contained in:
parent
44679590e0
commit
d6904ea5a0
|
@ -4,7 +4,7 @@
|
||||||
import sys
|
import sys
|
||||||
import IdleConf
|
import IdleConf
|
||||||
|
|
||||||
idle_dir = os.path.split(sys.argv[0])[0]
|
idle_dir = os.path.dirname(IdleConf.__file__)
|
||||||
IdleConf.load(idle_dir)
|
IdleConf.load(idle_dir)
|
||||||
|
|
||||||
# defer importing Pyshell until IdleConf is loaded
|
# defer importing Pyshell until IdleConf is loaded
|
||||||
|
|
Loading…
Reference in New Issue