diff options
| author | Nick Mathewson <nickm@torproject.org> | 2003-05-17 06:18:24 +0000 |
|---|---|---|
| committer | Nick Mathewson <nickm@torproject.org> | 2003-05-17 06:18:24 +0000 |
| commit | 0d6150b63cd5a698e647a4809e65a262f55902cb (patch) | |
| tree | c2269f85b90faf0585b6ea245b119d75d613ad5e /BibTeX.py | |
| parent | 1d07a97300d48872726edd989f53bf489dc00a41 (diff) | |
| download | anonbib-0d6150b63cd5a698e647a4809e65a262f55902cb.tar.gz | |
Adding second version of perl files, css support, first take on anon bib
svn:r6
Diffstat (limited to 'BibTeX.py')
| -rw-r--r-- | BibTeX.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -621,7 +621,11 @@ BRACE_OPEN_RE = re.compile(r'^([^\{\}]*\{)(.*)') RAW_DATA_RE = re.compile(r'^([^\s\},]+)(.*)') if __name__ == '__main__': - f = FileIter(fname="testbib/pdos.bib") + import sys + if len(sys.argv)>1: + f = FileIter(fname=sys.argv[1]) + else: + f = FileIter(fname="testbib/pdos.bib") p = Parser(f, {}) print p r = p.parse() |
