From 679b3962e63f7e94331fa38876ce3286d9ddc5fb Mon Sep 17 00:00:00 2001 From: PsySlayer Date: Sat, 14 Mar 2026 23:42:53 +0200 Subject: [PATCH] fix: single dirname for flat layout + __future__ at file top in sicry.py --- ask.py | 2 +- check_engines.py | 2 +- check_tor.py | 2 +- fetch.py | 2 +- pipeline.py | 2 +- renew.py | 2 +- search.py | 2 +- sicry.py | 3 +-- sync_sicry.py | 2 +- 9 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ask.py b/ask.py index 13ae2ff..50cd70a 100755 --- a/ask.py +++ b/ask.py @@ -15,7 +15,7 @@ Modes: threat_intel (default), ransomware, personal_identity, corporate import sys, os, argparse # ── bootstrap ───────────────────────────────────────────────────── -_skill_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +_skill_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, _skill_dir) _env = os.path.join(_skill_dir, ".env") diff --git a/check_engines.py b/check_engines.py index 71eeb60..9f1129d 100755 --- a/check_engines.py +++ b/check_engines.py @@ -11,7 +11,7 @@ Usage: import sys, os, json # ── bootstrap ───────────────────────────────────────────────────── -_skill_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +_skill_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, _skill_dir) _env = os.path.join(_skill_dir, ".env") diff --git a/check_tor.py b/check_tor.py index 049e48f..a2c085c 100755 --- a/check_tor.py +++ b/check_tor.py @@ -8,7 +8,7 @@ Verify Tor is running and return the exit IP address. import sys, os, json # ── bootstrap ───────────────────────────────────────────────────── -_skill_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +_skill_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, _skill_dir) _env = os.path.join(_skill_dir, ".env") diff --git a/fetch.py b/fetch.py index ece66f5..ad26d3f 100755 --- a/fetch.py +++ b/fetch.py @@ -12,7 +12,7 @@ Usage: import sys, os, json, argparse # ── bootstrap ───────────────────────────────────────────────────── -_skill_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +_skill_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, _skill_dir) _env = os.path.join(_skill_dir, ".env") diff --git a/pipeline.py b/pipeline.py index 94c6290..c7e6fc2 100755 --- a/pipeline.py +++ b/pipeline.py @@ -16,7 +16,7 @@ Usage: import sys, os, argparse, json # ── bootstrap ───────────────────────────────────────────────────── -_skill_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +_skill_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, _skill_dir) _env = os.path.join(_skill_dir, ".env") diff --git a/renew.py b/renew.py index 3bdb5a5..ec5f58f 100755 --- a/renew.py +++ b/renew.py @@ -8,7 +8,7 @@ Rotate the Tor circuit and get a new exit node / identity. import sys, os, json # ── bootstrap ───────────────────────────────────────────────────── -_skill_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +_skill_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, _skill_dir) _env = os.path.join(_skill_dir, ".env") diff --git a/search.py b/search.py index e3d31cd..269d9d8 100755 --- a/search.py +++ b/search.py @@ -13,7 +13,7 @@ Usage: import sys, os, json, argparse # ── bootstrap ───────────────────────────────────────────────────── -_skill_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +_skill_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, _skill_dir) _env = os.path.join(_skill_dir, ".env") diff --git a/sicry.py b/sicry.py index 2f8de03..e2a65be 100644 --- a/sicry.py +++ b/sicry.py @@ -1,5 +1,6 @@ # SPDX-License-Identifier: MIT # Copyright (c) 2026 JacobJandon — https://github.com/JacobJandon/Sicry +from __future__ import annotations __version__ = "1.0.0" @@ -43,8 +44,6 @@ Powered by Robin's engine catalogue (github.com/apurvsinghgautam/robin, MIT). Use responsibly and lawfully. """ -from __future__ import annotations - import json import logging import os diff --git a/sync_sicry.py b/sync_sicry.py index 6938093..43b8869 100644 --- a/sync_sicry.py +++ b/sync_sicry.py @@ -22,7 +22,7 @@ except Exception as _e: sys.exit(1) UPSTREAM_RAW = "https://raw.githubusercontent.com/JacobJandon/Sicry/{ref}/sicry.py" -DEST = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "sicry.py") +DEST = os.path.join(os.path.dirname(os.path.abspath(__file__)), "sicry.py") def main():