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:
geoffrey45
2023-04-09 01:01:48 +03:00
parent e5f18f9301
commit 9bfc1ceed2
17 changed files with 149 additions and 130 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class Playlist:
self.count = len(self.trackhashes)
self.has_gif = bool(int(self.has_gif))
self.has_image = (Path(settings.Paths.PLAYLIST_IMG_PATH) / str(self.image)).exists()
self.has_image = (Path(settings.Paths.get_playlist_img_path()) / str(self.image)).exists()
if self.image is not None:
self.thumb = "thumb_" + self.image