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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user