From 0d6150b63cd5a698e647a4809e65a262f55902cb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 17 May 2003 06:18:24 +0000 Subject: Adding second version of perl files, css support, first take on anon bib svn:r6 --- BibTeX.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'BibTeX.py') diff --git a/BibTeX.py b/BibTeX.py index 07e3b66..9a1da6b 100644 --- a/BibTeX.py +++ b/BibTeX.py @@ -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() -- cgit v1.2.3-70-g09d2