1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-18 16:05:11 +00:00

Add APP_DB_ROOT config variable

This commit is contained in:
Jan Broer
2015-08-04 01:44:05 +02:00
parent 0b5b3b8424
commit a5fe21c9e0
2 changed files with 4 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ import os
from cps import config
from werkzeug.security import generate_password_hash
dbpath = os.path.join(config.MAIN_DIR, "app.db")
dbpath = os.path.join(config.APP_DB_ROOT, "app.db")
engine = create_engine('sqlite:///{0}'.format(dbpath), echo=False)
Base = declarative_base()