Add files via upload

This commit is contained in:
FatihMakes authored and GitHub committed 2026-05-10 17:04:19 +03:00
1 parent 40b3b0611a
commit a99448c250
27 files changed
+10043 -1446

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import json, os
from pathlib import Path
_CONFIG_PATH = Path(__file__).parent / "api_keys.json"
def get_config() -> dict:
with open(_CONFIG_PATH, "r", encoding="utf-8") as f:
return json.load(f)
def get_os() -> str:
"""Returns: 'windows' | 'mac' | 'linux'"""
return get_config().get("os_system", "windows").lower()
def is_windows() -> bool: return get_os() == "windows"
def is_mac() -> bool: return get_os() == "mac"
def is_linux() -> bool: return get_os() == "linux"