social media crossposting tool. 3rd time's the charm
mastodon misskey crossposting bluesky
at next 527 B view raw
1import os 2from pathlib import Path 3 4DEV = bool(os.environ.get("DEV")) or False 5 6DATA_DIR = Path(os.environ.get("DATA_DIR") or "./data") 7CACHE_DIR = Path(os.environ.get("CACHE_DIR") or DATA_DIR.joinpath("cache")) 8SETTINGS_DIR = Path(os.environ.get("SETTINGS_DIR") or DATA_DIR.joinpath("settings.json")) 9DATABASE_DIR = Path(os.environ.get("DATABASE_DIR") or DATA_DIR.joinpath("data.db")) 10 11MIGRATIONS_DIR = Path(os.environ.get("MIGRATIONS_DIR") or "./migrations") 12 13PLC_HOST = os.environ.get("PLC_HOST") or "https://plc.directory"