This commit is contained in:
Administrator 2023-10-07 13:51:06 +00:00
parent e8ffb7461d
commit f81643433f

View File

@ -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('<!--Placeholder-->',subst))