fix: single dirname for flat layout + __future__ at file top in sicry.py

This commit is contained in:
PsySlayer
2026-03-14 23:42:53 +02:00
parent a97e92bc69
commit 679b3962e6
9 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ Modes: threat_intel (default), ransomware, personal_identity, corporate
import sys, os, argparse import sys, os, argparse
# ── bootstrap ───────────────────────────────────────────────────── # ── 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) sys.path.insert(0, _skill_dir)
_env = os.path.join(_skill_dir, ".env") _env = os.path.join(_skill_dir, ".env")
+1 -1
View File
@@ -11,7 +11,7 @@ Usage:
import sys, os, json import sys, os, json
# ── bootstrap ───────────────────────────────────────────────────── # ── 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) sys.path.insert(0, _skill_dir)
_env = os.path.join(_skill_dir, ".env") _env = os.path.join(_skill_dir, ".env")
+1 -1
View File
@@ -8,7 +8,7 @@ Verify Tor is running and return the exit IP address.
import sys, os, json import sys, os, json
# ── bootstrap ───────────────────────────────────────────────────── # ── 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) sys.path.insert(0, _skill_dir)
_env = os.path.join(_skill_dir, ".env") _env = os.path.join(_skill_dir, ".env")
+1 -1
View File
@@ -12,7 +12,7 @@ Usage:
import sys, os, json, argparse import sys, os, json, argparse
# ── bootstrap ───────────────────────────────────────────────────── # ── 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) sys.path.insert(0, _skill_dir)
_env = os.path.join(_skill_dir, ".env") _env = os.path.join(_skill_dir, ".env")
+1 -1
View File
@@ -16,7 +16,7 @@ Usage:
import sys, os, argparse, json import sys, os, argparse, json
# ── bootstrap ───────────────────────────────────────────────────── # ── 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) sys.path.insert(0, _skill_dir)
_env = os.path.join(_skill_dir, ".env") _env = os.path.join(_skill_dir, ".env")
+1 -1
View File
@@ -8,7 +8,7 @@ Rotate the Tor circuit and get a new exit node / identity.
import sys, os, json import sys, os, json
# ── bootstrap ───────────────────────────────────────────────────── # ── 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) sys.path.insert(0, _skill_dir)
_env = os.path.join(_skill_dir, ".env") _env = os.path.join(_skill_dir, ".env")
+1 -1
View File
@@ -13,7 +13,7 @@ Usage:
import sys, os, json, argparse import sys, os, json, argparse
# ── bootstrap ───────────────────────────────────────────────────── # ── 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) sys.path.insert(0, _skill_dir)
_env = os.path.join(_skill_dir, ".env") _env = os.path.join(_skill_dir, ".env")
+1 -2
View File
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# Copyright (c) 2026 JacobJandon — https://github.com/JacobJandon/Sicry # Copyright (c) 2026 JacobJandon — https://github.com/JacobJandon/Sicry
from __future__ import annotations
__version__ = "1.0.0" __version__ = "1.0.0"
@@ -43,8 +44,6 @@ Powered by Robin's engine catalogue (github.com/apurvsinghgautam/robin, MIT).
Use responsibly and lawfully. Use responsibly and lawfully.
""" """
from __future__ import annotations
import json import json
import logging import logging
import os import os
+1 -1
View File
@@ -22,7 +22,7 @@ except Exception as _e:
sys.exit(1) sys.exit(1)
UPSTREAM_RAW = "https://raw.githubusercontent.com/JacobJandon/Sicry/{ref}/sicry.py" 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(): def main():