def __init__(self):
self.list = []
def Repository(self, *dirs):
- self.list.extend(dirs)
+ self.list.extend(list(dirs))
def Dir(self, name):
return name
env = Environment(FOO='rrr', BAR='sss')
"""A builder for TeX and LaTeX that scans the source file to
decide the "flavor" of the source and then executes the appropriate
program."""
- LaTeXFile = False
+ LaTeXFile = None
for src in source:
content = src.get_contents()
if re.search("\\\\document(style|class)",content):
- LaTeXFile = True
+ LaTeXFile = 1
+ break
if LaTeXFile:
LaTeXAuxAction(target,source,env)
else: