mirror of
https://github.com/python/cpython.git
synced 2025-11-01 22:21:35 +00:00
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.
This commit is contained in:
parent
583abb8027
commit
e81f28b630
6 changed files with 51 additions and 86 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue