fix(gateway): correct sys.path insertion in plugins to prevent cron namespace collision (#49410)

This commit is contained in:
kyssta-exe 2026-06-20 04:28:24 +00:00 committed by Teknium
parent e5e173eefd
commit 4c206b972d
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ except ImportError:
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

View file

@ -36,7 +36,7 @@ except ImportError:
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 (