diff --git a/plugins/platforms/discord/adapter.py b/plugins/platforms/discord/adapter.py index 642f2f12b3b5..accede61a234 100644 --- a/plugins/platforms/discord/adapter.py +++ b/plugins/platforms/discord/adapter.py @@ -98,7 +98,7 @@ def __init__(self, id: int) -> None: # noqa: A002 - matches discord API import sys from pathlib import Path as _Path -sys.path.insert(0, str(_Path(__file__).resolve().parents[2])) +sys.path.insert(0, str(_Path(__file__).resolve().parents[3])) from gateway.config import Platform, PlatformConfig diff --git a/plugins/platforms/raft/adapter.py b/plugins/platforms/raft/adapter.py index 67e34b2a9062..7f65fa233c2f 100644 --- a/plugins/platforms/raft/adapter.py +++ b/plugins/platforms/raft/adapter.py @@ -36,7 +36,7 @@ import sys from pathlib import Path as _Path -sys.path.insert(0, str(_Path(__file__).resolve().parents[2])) +sys.path.insert(0, str(_Path(__file__).resolve().parents[3])) from gateway.config import Platform, PlatformConfig from gateway.platforms.base import ( diff --git a/plugins/platforms/slack/adapter.py b/plugins/platforms/slack/adapter.py index 274fe61665f5..8bc0ed381e5e 100644 --- a/plugins/platforms/slack/adapter.py +++ b/plugins/platforms/slack/adapter.py @@ -34,7 +34,7 @@ import sys from pathlib import Path as _Path -sys.path.insert(0, str(_Path(__file__).resolve().parents[2])) +sys.path.insert(0, str(_Path(__file__).resolve().parents[3])) from gateway.config import Platform, PlatformConfig from gateway.platforms.helpers import MessageDeduplicator diff --git a/plugins/platforms/telegram/adapter.py b/plugins/platforms/telegram/adapter.py index 2560f3813de3..2a1054b1d2e7 100644 --- a/plugins/platforms/telegram/adapter.py +++ b/plugins/platforms/telegram/adapter.py @@ -63,7 +63,7 @@ class _MockContextTypes: import sys from pathlib import Path as _Path -sys.path.insert(0, str(_Path(__file__).resolve().parents[2])) +sys.path.insert(0, str(_Path(__file__).resolve().parents[3])) from gateway.config import Platform, PlatformConfig from gateway.platforms.base import ( diff --git a/plugins/platforms/whatsapp/adapter.py b/plugins/platforms/whatsapp/adapter.py index 4f5e16d6581d..9e89baff066d 100644 --- a/plugins/platforms/whatsapp/adapter.py +++ b/plugins/platforms/whatsapp/adapter.py @@ -178,7 +178,7 @@ def _terminate_bridge_process(proc, *, force: bool = False) -> None: return import sys -sys.path.insert(0, str(Path(__file__).resolve().parents[2])) +sys.path.insert(0, str(Path(__file__).resolve().parents[3])) from gateway.config import Platform, PlatformConfig from gateway.platforms.whatsapp_common import WhatsAppBehaviorMixin