[Python-checkins] CVS: python/dist/src/Tools/idle idle.py,1.2,1.3
Fred Drake
python-dev@python.org
Mon, 10 Apr 2000 12:27:49 -0400
Update of /projects/cvsroot/python/dist/src/Tools/idle
In directory seahag.cnri.reston.va.us:/home/fdrake/projects/python/Tools/idle
Modified Files:
idle.py
Log Message:
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.
Index: idle.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Tools/idle/idle.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** idle.py 2000/03/03 23:06:45 1.2
--- idle.py 2000/04/10 16:27:47 1.3
***************
*** 5,9 ****
import IdleConf
! idle_dir = os.path.split(sys.argv[0])[0]
IdleConf.load(idle_dir)
--- 5,9 ----
import IdleConf
! idle_dir = os.path.dirname(IdleConf.__file__)
IdleConf.load(idle_dir)