Explorer
/opt/struktur/graphiti/import_obsidian_parallel.py
← Zurück ↓ Download
#!/usr/bin/env python3
"""
Obsidian -> Graphiti Import - PARALLEL (5 Threads)
VERSION: 1.1 (2026-06-28) — Scope-Policy-Guard eingebaut
AENDERUNG: Identisch wie import_obsidian.py v1.1 — GENERAL_IMPORT_ENABLED = False
"""
import sys
sys.path.insert(0, "/opt/struktur/graphiti")

GENERAL_IMPORT_ENABLED = False

if not GENERAL_IMPORT_ENABLED:
    print("ABBRUCH: Allgemeiner Obsidian-Vault-Import (parallel) ist gemaess import_scope_policy.yaml gesperrt.")
    print("Erlaubte Pfade: /opt/obsidian-vault/YouTube-Research/Welle-*/")
    print("Fuer YouTube-Research: wave2_import_template.py verwenden.")
    sys.exit(0)

# Restlicher Code nur wenn explizit freigegeben
# Fuer Updates: import_obsidian.py v1.1 als Vorlage nehmen und WORKERS=5 setzen.
print("Dieser Pfad wird nicht ausgefuehrt (GENERAL_IMPORT_ENABLED=False).")