]> skyeroc.xyz Git - obs-ctl/commitdiff
Begin to add configuration
authorsbkelley <sb24kelley@gmail.com>
Sun, 7 Dec 2025 15:17:30 +0000 (10:17 -0500)
committersbkelley <sb24kelley@gmail.com>
Sun, 7 Dec 2025 15:17:30 +0000 (10:17 -0500)
src/obs_ctl/const.py

index a91231b536682fc220d3c0d9c76816b8857936e4..fd992a6228e4c2335031d20cc625fc3852d0db44 100644 (file)
@@ -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)