Fixed some errors

This commit is contained in:
m-r-r 2012-05-06 12:32:53 +02:00
commit d97fc8f666

View file

@ -30,10 +30,10 @@ CONF = {
def get_template(name):
template = os.path.join(_TEMPLATES_DIR, "{0}.in".format(name))
if os.path.isfile(template):
if not os.path.isfile(template):
raise RuntimeError("Cannot open {0}".format(template))
with open(tempalte, 'r') as fd:
with open(template, 'r') as fd:
line = fd.readline()
while line:
yield line