diff --git a/build.py b/build.py index 8fff7db..383bff5 100644 --- a/build.py +++ b/build.py @@ -1,5 +1,6 @@ import csv import logging +import os def wrap_url(u): if u.startswith("http"): @@ -20,6 +21,7 @@ if __name__ == '__main__': logging.info('write file') with open('template/template.html') as inf: + os.mkdir('public') with open('public/index.html', 'w') as outf: outf.write(inf.read().replace('',subst))