diff options
author | Guido van Rossum <guido@python.org> | 1994-08-19 15:02:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-19 15:02:57 (GMT) |
commit | 9af22a037fc961b51651324bdd17a43567a688fd (patch) | |
tree | 4ba9cca45eff8e866ee8fba3dadc89f2b68bc1e2 /Demo/scripts/newslist.py | |
parent | 72824bab44e8027d67325df94bfa0673c69999fb (diff) | |
download | cpython-9af22a037fc961b51651324bdd17a43567a688fd.zip cpython-9af22a037fc961b51651324bdd17a43567a688fd.tar.gz cpython-9af22a037fc961b51651324bdd17a43567a688fd.tar.bz2 |
newslist.py: Added search for .newslistrc.py;
pindent.py: use /usr/local/bin/python;
pathfix.py: new script to fix #! lines in a group of scripts.
Diffstat (limited to 'Demo/scripts/newslist.py')
-rwxr-xr-x | Demo/scripts/newslist.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Demo/scripts/newslist.py b/Demo/scripts/newslist.py index 312fd0d..4c5376d 100755 --- a/Demo/scripts/newslist.py +++ b/Demo/scripts/newslist.py @@ -95,6 +95,13 @@ sublistsize = 4 # That should be all. # ####################################################################### +for dir in os.curdir, os.environ['HOME']: + rcfile = os.path.join(dir, '.newslistrc.py') + if os.path.exists(rcfile): + print rcfile + execfile(rcfile) + break + from nntplib import NNTP from stat import * |