summaryrefslogtreecommitdiffstats
path: root/Tools/idle/idle.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-03-03 23:06:45 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-03-03 23:06:45 (GMT)
commite81f28b630a7192207b9ac9a6813c8d29f1bed6c (patch)
tree470d5306ede24a1819eefb1fff1fb3abae7446f3 /Tools/idle/idle.py
parent583abb80277d6ab5c8ad887477c12a3139e6f5f9 (diff)
downloadcpython-e81f28b630a7192207b9ac9a6813c8d29f1bed6c.zip
cpython-e81f28b630a7192207b9ac9a6813c8d29f1bed6c.tar.gz
cpython-e81f28b630a7192207b9ac9a6813c8d29f1bed6c.tar.bz2
migrate to use of IdleConf and config files to set options
idle.py: Load the config files before anything else happens XXX Need to define standard way to get files relative to the IDLE install dir PyShell.py: ColorDelegator.py: Get color defns out of IdleConf instead of IdlePrefs EditorWindow.py: Replace hard-coded font & window size with config options Get extension names via IdleConf.getextensions extend.py: Obsolete. Extensions defined in config file. ParenMatch.py: Use config file for extension options. Revise comment about parser requirements. Simplify logic on find returning None.
Diffstat (limited to 'Tools/idle/idle.py')
-rwxr-xr-xTools/idle/idle.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tools/idle/idle.py b/Tools/idle/idle.py
index 3c06e05..71fdce5 100755
--- a/Tools/idle/idle.py
+++ b/Tools/idle/idle.py
@@ -1,3 +1,12 @@
#! /usr/bin/env python
+
+import os
+import sys
+import IdleConf
+
+idle_dir = os.path.split(sys.argv[0])[0]
+IdleConf.load(idle_dir)
+
+# defer importing Pyshell until IdleConf is loaded
import PyShell
PyShell.main()