implemented base dir for all files

This commit is contained in:
Hellow
2024-02-13 21:43:29 +01:00
parent 61536240f3
commit d19406d3b4
4 changed files with 10 additions and 16 deletions

View File

@@ -3,12 +3,12 @@ from pathlib import Path
from mastodon import Mastodon
from . import Feed
from ..utils import PROGRAM_NAME, prompt, config
from ..utils import PROGRAM_DATA_DIR, prompt, config
class MastodonFeed(Feed):
__config_name__ = "mastodon"
CLIENTCRED_PATH: Path = config.CONFIG_PATH.joinpath("mastodon_clientcred.secret")
CLIENTCRED_PATH: Path = PROGRAM_DATA_DIR.joinpath("mastodon_clientcred.secret")
@classmethod
def prompt_auth(cls) -> dict: