mkdir
This commit is contained in:
parent
e8ffb7461d
commit
f81643433f
2
build.py
2
build.py
@ -1,5 +1,6 @@
|
|||||||
import csv
|
import csv
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
def wrap_url(u):
|
def wrap_url(u):
|
||||||
if u.startswith("http"):
|
if u.startswith("http"):
|
||||||
@ -20,6 +21,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
logging.info('write file')
|
logging.info('write file')
|
||||||
with open('template/template.html') as inf:
|
with open('template/template.html') as inf:
|
||||||
|
os.mkdir('public')
|
||||||
with open('public/index.html', 'w') as outf:
|
with open('public/index.html', 'w') as outf:
|
||||||
outf.write(inf.read().replace('<!--Placeholder-->',subst))
|
outf.write(inf.read().replace('<!--Placeholder-->',subst))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user