[Python-checkins] CVS: python/dist/src/Tools/idle IdleConf.py,1.1,1.2
Jeremy Hylton
jhylton@cnri.reston.va.us
Fri, 3 Mar 2000 18:00:44 -0500 (EST)
- Previous message: [Python-checkins] CVS: python/dist/src/Tools/idle IdleConf.py,NONE,1.1 config-unix.txt,NONE,1.1 config-win.txt,NONE,1.1 config.txt,NONE,1.1
- Next message: [Python-checkins] CVS: python/dist/src/Tools/idle ColorDelegator.py,1.8,1.9 EditorWindow.py,1.30,1.31 ParenMatch.py,1.1,1.2 PyShell.py,1.24,1.25 idle.py,1.1,1.2 extend.py,1.4,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /projects/cvsroot/python/dist/src/Tools/idle
In directory bitdiddle:/home/jhylton/python/src/Tools/idle
Modified Files:
IdleConf.py
Log Message:
default to cwd if os.environ['HOME'] does not exist
Index: IdleConf.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Tools/idle/IdleConf.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** IdleConf.py 2000/03/03 22:57:41 1.1
--- IdleConf.py 2000/03/03 23:00:41 1.2
***************
*** 101,110 ****
platfile = os.path.join(dir, "config-%s.txt" % sys.platform)
for file in (os.path.join(dir, "config.txt"),
genplatfile,
platfile,
! # XXX watch out for KeyError
! os.path.join(os.environ['HOME'], ".idle"),
):
try:
--- 101,114 ----
platfile = os.path.join(dir, "config-%s.txt" % sys.platform)
+
+ try:
+ homedir = os.environ['HOME']
+ except KeyError:
+ homedir = os.getcwd()
for file in (os.path.join(dir, "config.txt"),
genplatfile,
platfile,
! os.path.join(homedir, ".idle"),
):
try:
- Previous message: [Python-checkins] CVS: python/dist/src/Tools/idle IdleConf.py,NONE,1.1 config-unix.txt,NONE,1.1 config-win.txt,NONE,1.1 config.txt,NONE,1.1
- Next message: [Python-checkins] CVS: python/dist/src/Tools/idle ColorDelegator.py,1.8,1.9 EditorWindow.py,1.30,1.31 ParenMatch.py,1.1,1.2 PyShell.py,1.24,1.25 idle.py,1.1,1.2 extend.py,1.4,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]