From a0bebe8f7c447888961766b55e1daa8cb2f8c292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Fri, 26 Nov 2021 08:52:48 +0100 Subject: [PATCH] Fix weird (?) error when running on other machine --- zspotify/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zspotify/config.py b/zspotify/config.py index d950ec4..e54c91d 100644 --- a/zspotify/config.py +++ b/zspotify/config.py @@ -183,7 +183,7 @@ class Config: @classmethod def get_song_archive(cls) -> str: - return os.path.join(ZSpotify.CONFIG.get_root_path(), cls.get(SONG_ARCHIVE)) + return os.path.join(cls.get_root_path(), cls.get(SONG_ARCHIVE)) @classmethod def get_credentials_location(cls) -> str: @@ -193,7 +193,7 @@ class Config: def get_temp_download_dir(cls) -> str: if cls.get(TEMP_DOWNLOAD_DIR) == '': return '' - return os.path.join(ZSpotify.CONFIG.get_root_path(), cls.get(TEMP_DOWNLOAD_DIR)) + return os.path.join(cls.get_root_path(), cls.get(TEMP_DOWNLOAD_DIR)) @classmethod def get_output(cls, mode: str) -> str: