2024-02-13 20:25:47 +00:00
|
|
|
import logging
|
2024-02-13 21:29:35 +00:00
|
|
|
from pathlib import Path
|
2024-02-11 18:00:48 +00:00
|
|
|
|
2024-02-13 20:43:29 +00:00
|
|
|
import platformdirs
|
2024-02-11 18:00:48 +00:00
|
|
|
|
|
|
|
|
2024-02-13 20:43:29 +00:00
|
|
|
logging.basicConfig(level=logging.INFO)
|
2024-02-13 20:25:47 +00:00
|
|
|
PROGRAM_NAME: str = "publish-meetups"
|
2024-02-13 21:29:35 +00:00
|
|
|
PROGRAM_DATA_DIR: Path = platformdirs.user_config_path(appname=PROGRAM_NAME)
|
2024-02-13 20:43:29 +00:00
|
|
|
PROGRAM_DATA_DIR.mkdir(parents=True, exist_ok=True)
|
|
|
|
|
2024-02-13 21:29:35 +00:00
|
|
|
ICS_FILE = Path(PROGRAM_DATA_DIR / "meetup.ics")
|
2024-02-11 18:00:48 +00:00
|
|
|
|
2024-02-13 21:29:35 +00:00
|
|
|
|
|
|
|
__all__ = ["prompt", "PROGRAM_DATA_DIR", "PROGRAM_NAME", "errors", "config", "ICS_FILE"]
|