Syncing before linting with black

This commit is contained in:
2025-11-06 10:59:59 -05:00
parent 2226cd8e46
commit f33b041ac0
10 changed files with 25 additions and 21 deletions
+6 -6
View File
@@ -31,15 +31,15 @@ def get_base_directory() -> Path:
system = platform.system()
home = Path.home()
if system == 'Windows':
return Path(os.getenv('APPDATA', home / 'AppData' / 'Roaming')) / "AirlockTools"
return Path(os.getenv('APPDATA', home / 'AppData' / 'Roaming')) / "Loxide"
elif system == 'Darwin':
return home / 'Library' / 'Application Support' / "AirlockTools"
return home / 'Library' / 'Application Support' / "Loxide"
else:
return home / '.local' / 'share' / "AirlockTools"
return home / '.local' / 'share' / "Loxide"
def configure_logging(log_dir: Path, log_level: str = "DEBUG"):
log_file = log_dir / "airlocktools.log"
log_file = log_dir / "Loxide.log"
config = {
"version": 1, # Required key for dictConfig format version
@@ -82,7 +82,7 @@ def configure_logging(log_dir: Path, log_level: str = "DEBUG"):
try:
config["handlers"]["eventlog"] = {
"class": "logging.handlers.NTEventLogHandler",
"appname": "AirlockTools", # Event log source name
"appname": "Loxide", # Event log source name
"level": "CRITICAL", # Only log critical errors
"formatter": "simple", # Use simple format
}
@@ -108,7 +108,7 @@ def load_system_config() -> dict:
except FileNotFoundError:
logging.warning("⚠️ system_config.json not found. Using built-in defaults.")
return {
"APPNAME": "AirlockTools",
"APPNAME": "Loxide",
"LOG_LEVEL": "DEBUG",
"PATH_EXCLUSION_CONST": 4,
"MIN_FILES_FOR_PATH": 4,