Topic generation: Accept non-existing output directory

This commit is contained in:
Lorenz Meier 2015-07-12 17:13:31 +02:00
parent cdc17f1fdd
commit 17471eab65
1 changed files with 7 additions and 6 deletions

View File

@ -105,6 +105,7 @@ def convert_dir(inputdir, outputdir, templatedir):
# Find the most recent modification time in output dir
maxouttime = 0
if os.path.isdir(outputdir)
for f in os.listdir(outputdir):
fni = os.path.join(outputdir, f)
if os.path.isfile(fni):