Commit fba70132 authored by Guido van Rossum's avatar Guido van Rossum

Move the action of loading the configuration to the IdleConf module

rather than the idle.py script.  This has advantages and
disadvantages; the biggest advantage being that we can more easily
have an alternative main program.
parent 82f20964
......@@ -110,3 +110,4 @@ def load(dir):
os.path.join(homedir, ".idle")))
idleconf = IdleConfParser()
load(os.path.dirname(__file__))
#! /usr/bin/env python
import os
import sys
import IdleConf
idle_dir = os.path.dirname(IdleConf.__file__)
IdleConf.load(idle_dir)
# defer importing Pyshell until IdleConf is loaded
import PyShell
PyShell.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment