Syncing before linting with black
This commit is contained in:
@@ -52,7 +52,7 @@ def load_protected_config() -> dict:
|
||||
except FileNotFoundError:
|
||||
logging.warning("⚠️ system_config.json not found. Using built-in defaults.")
|
||||
system_config = {
|
||||
"APPNAME": "AirlockTools",
|
||||
"APPNAME": "Loxide",
|
||||
"PATH_EXCLUSION_CONST": 4,
|
||||
"MIN_FILES_FOR_PATH": 4,
|
||||
"VT_THREAT_TOLERANCE": 4,
|
||||
|
||||
+6
-6
@@ -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,
|
||||
|
||||
+4
-4
@@ -366,7 +366,7 @@ class MainMenuScreen(Screen):
|
||||
# ---------------------------------------------------------------------------
|
||||
# 2) APP
|
||||
# ---------------------------------------------------------------------------
|
||||
class AirlockTools(App):
|
||||
class Loxide(App):
|
||||
CSS = """
|
||||
#logo {
|
||||
width: 100%;
|
||||
@@ -447,7 +447,7 @@ def _run_legacy_job(func, args, kwargs) -> None:
|
||||
# ---------------------------------------------------------------------------
|
||||
# 4) PUBLIC ENTRYPOINT
|
||||
# ---------------------------------------------------------------------------
|
||||
def run_AirlockTools(api: AirlockAPIWrapper) -> None:
|
||||
def run_Loxide(api: AirlockAPIWrapper) -> None:
|
||||
global _PENDING_JOB
|
||||
|
||||
while True:
|
||||
@@ -456,7 +456,7 @@ def run_AirlockTools(api: AirlockAPIWrapper) -> None:
|
||||
dotenv.load_dotenv(dotenv_path=env_path, override=True)
|
||||
|
||||
_PENDING_JOB = None
|
||||
app = AirlockTools(api)
|
||||
app = Loxide(api)
|
||||
|
||||
try:
|
||||
app.run()
|
||||
@@ -486,4 +486,4 @@ def run_AirlockTools(api: AirlockAPIWrapper) -> None:
|
||||
# ---------------------------------------------------------------------------
|
||||
if __name__ == "__main__":
|
||||
api = AirlockAPIWrapper()
|
||||
run_AirlockTools(api)
|
||||
run_Loxide(api)
|
||||
|
||||
Reference in New Issue
Block a user