Commit 668867a1 authored by librebob's avatar librebob

Make dirs if not exists.

parent 13b012d0
Pipeline #56232304 passed with stage
in 1 minute and 38 seconds
......@@ -5,9 +5,12 @@ import json
import os
db_path = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation) + '/com.gitlab.librebob.Athenaeum/store.db'
db_path = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation) + '/com.gitlab.librebob.Athenaeum'
if not os.path.exists(db_path):
os.makedirs(db_path)
try:
db = SqliteDatabase(db_path)
db = SqliteDatabase(db_path + '/store.db')
except Error as e:
sys.exit("Error creating database.")
......
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