mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
add --config flag to modify config path
+ use getters instead of constants in settings classes + refactor previous references + move get_xdg_config_dir() from settings.py to app.utils.xdg_utils.py
This commit is contained in:
@@ -78,10 +78,10 @@ class SQLiteManager:
|
||||
if self.conn is not None:
|
||||
return self.conn.cursor()
|
||||
|
||||
db_path = Db.APP_DB_PATH
|
||||
db_path = Db.get_app_db_path()
|
||||
|
||||
if self.userdata_db:
|
||||
db_path = Db.USERDATA_DB_PATH
|
||||
db_path = Db.get_userdata_db_path()
|
||||
|
||||
self.conn = sqlite3.connect(
|
||||
db_path,
|
||||
|
||||
Reference in New Issue
Block a user