From: sbkelley Date: Sun, 7 Dec 2025 15:17:30 +0000 (-0500) Subject: Begin to add configuration X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=3e130c1fc974977a2ef33090c340fea0a0f0f3b5;p=obs-ctl Begin to add configuration --- diff --git a/src/obs_ctl/const.py b/src/obs_ctl/const.py index a91231b..fd992a6 100644 --- a/src/obs_ctl/const.py +++ b/src/obs_ctl/const.py @@ -1,2 +1,12 @@ +from platformdirs import PlatformDirs +from configparser import ConfigParser APPNAME = "obs-ctl" -APPAUTHOR = "skyebee" \ No newline at end of file +APPAUTHOR = "skyebee" +VERSION = "0.0.1" + +USERDIRS = PlatformDirs(APPNAME, APPAUTHOR, ensure_exists=True) + +CONFIG = ConfigParser() + +POSSIBLE_CONFIG: list[str] = [USERDIRS.user_config_dir] +CURRENT_CONFIG = CONFIG.read(POSSIBLE_CONFIG)