Fix issue with documentclass.compile unwanted recompiling.

This commit is contained in:
Holt59 2018-04-01 14:40:11 +02:00
parent 47944b3dd2
commit 1d180cdf88

View File

@ -144,9 +144,9 @@ class documentclass(element):
# Content has not changed # Content has not changed
if old_content == new_content \ if old_content == new_content \
and os.path.exists('{}.pdf'.format(outfile)) \ and os.path.exists(os.path.join(outdir, outfile) + '.pdf') \
and os.path.getctime(infile) <= \ and os.path.getctime(infile) <= \
os.path.getctime('{}.pdf'.format(outfile)): os.path.getctime(os.path.join(outdir, outfile) + '.pdf'):
to_create = False to_create = False
if to_create: if to_create: