Create directory before filling it in.

This commit is contained in:
Sergio Martínez Portela 2022-10-21 00:23:50 +02:00
parent fcd9854a17
commit f66d69776b

View File

@ -246,6 +246,7 @@ def main(src_top, dest_top):
## Initial load ## Initial load
t0 = time.time() t0 = time.time()
os.makedirs(dest_top, exist_ok=True)
db = create_db(os.path.join(dest_top, 'db.sqlite3')) db = create_db(os.path.join(dest_top, 'db.sqlite3'))
docs = regen_all(src_top, dest_top, db=db) docs = regen_all(src_top, dest_top, db=db)