🕵️♂️ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.
Python cybersecuritycybersecurity-toolsemail-osintethical-hackingethical-hacking-toolsidentificationinfosecosintosint-emailosint-toolosint-toolsosint-usernamepentestingpythonredteam-toolsredteamingthreat-intelligence
updating to match with new tests
kaifcodecc93f58420cca
diff --git a/user_scanner/utils/updater_logic.py b/user_scanner/utils/updater_logic.pyindex 7766c5d..1b00493 100644--- a/user_scanner/utils/updater_logic.py+++ b/user_scanner/utils/updater_logic.py@@ -2,6 +2,7 @@ from pathlib import Pathfrom colorama import Foreimport sysimport json+import osfrom user_scanner.core.version import get_pypi_version, load_local_versionfrom user_scanner.utils.update import update_self@@ -15,19 +16,39 @@ X = Fore.RESETCONFIG_PATH = Path(__file__).parent.parent / "config.json"-def load_config() -> dict:- if CONFIG_PATH.exists():- return json.loads(CONFIG_PATH.read_text())+def _get_config_path(path: str | Path | None = None) -> Path:+ """+ Determine the config path in this order:+ 1. explicit path argument (if provided)+ 2. environment variable USER_SCANNER_CONFIG (if set)+ 3. default CONFIG_PATH+ """+ if path:+ return Path(path)+ env = os.environ.get("USER_SCANNER_CONFIG")+ if env:+ return Path(env)+ return CONFIG_PATH+++def load_config(path: str | Path | None = None) -> dict:+ cp = _get_config_path(path)+ if cp.exists():+ return json.loads(cp.read_text())default = {"auto_update_status": True}- CONFIG_PATH.write_text(json.dumps(default, indent=2))+ # Ensure parent exists+ cp.parent.mkdir(parents=True, exist_ok=True)+ cp.write_text(json.dumps(default, indent=2))return default-def save_config_change(status: bool):- content = load_config()+def save_config_change(status: bool, path: str | Path | None = None):+ cp = _get_config_path(path)+ content = load_config(path)content["auto_update_status"] = status- CONFIG_PATH.write_text(json.dumps(content, indent=2))+ cp.parent.mkdir(parents=True, exist_ok=True)+ cp.write_text(json.dumps(content, indent=2))def check_for_updates():