From 3e130c1fc974977a2ef33090c340fea0a0f0f3b5 Mon Sep 17 00:00:00 2001 From: sbkelley Date: Sun, 7 Dec 2025 10:17:30 -0500 Subject: [PATCH] Begin to add configuration --- src/obs_ctl/const.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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) -- 2.47.3