Commit aae49eb8 authored by Julien Jerphanion's avatar Julien Jerphanion 🌍

Create parent dir for database if not present

parent 8e96158e
Pipeline #42833 passed with stage
in 46 seconds
......@@ -67,6 +67,8 @@ def get_db_string(force_local=False, database_url_file: str = DB_URL_FILE):
if not (os.path.exists(database_url_file)):
print("Using local SQLite database : " + db_string)
parent_dir = os.path.dirname(database_url_file)
os.makedirs(parent_dir, exist_ok=True)
return db_string
file = open(database_url_file, "r")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment