[Python-checkins] CVS: python/dist/src/Tools/idle IdleConf.py,1.6,1.7 idle.py,1.3,1.4

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 12 May 2001 05:18:12 -0700


Update of /cvsroot/python/python/dist/src/Tools/idle
In directory usw-pr-cvs1:/tmp/cvs-serv13120

Modified Files:
	IdleConf.py idle.py 
Log Message:
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.



Index: IdleConf.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/IdleConf.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** IdleConf.py	2001/01/17 08:48:39	1.6
--- IdleConf.py	2001/05/12 12:18:10	1.7
***************
*** 111,112 ****
--- 111,113 ----
  
  idleconf = IdleConfParser()
+ load(os.path.dirname(__file__))

Index: idle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/idle.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** idle.py	2000/04/10 16:27:47	1.3
--- idle.py	2001/05/12 12:18:10	1.4
***************
*** 1,12 ****
  #! /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()
--- 1,4 ----