feat: Add AUTH_PATH as a class constant

This commit is contained in:
2025-11-17 17:18:54 +01:00
parent 9b317e20cb
commit 53674a5219

View File

@@ -12,11 +12,13 @@ except ImportError:
class Auditui:
AUTH_PATH = Path.home() / ".config" / "auditui" / "auth.json"
def __init__(self):
self.auth = None
def login_to_audible(self):
auth_file = Path.home() / ".config" / "auditui" / "auth.json"
auth_file = self.AUTH_PATH
auth_file.parent.mkdir(parents=True, exist_ok=True)
if auth_file.exists():