fix relative .data_parser imports in BOT/* after SHARED move (#1224)

PR #1223 + fixup moved data_parser into BOTS/SHARED, but five BOT modules
(analytics, autologging, botscript, lux_apis, meta_manager) still used
`from .data_parser import ...`. That relative form looks inside the BOT
package, which no longer contains data_parser, so the bot crashed at
startup with ModuleNotFoundError.

Add BOT/__init__.py to put BOTS/SHARED on sys.path at package import,
then switch all five files to absolute `from data_parser import ...`.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
NotSoToothless
2026-05-13 23:30:15 -07:00
committed by GitHub
parent 2b399fdb81
commit ff420e131f
6 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ from websockets.asyncio.client import connect as wsconnect
# Local Module Imports
try:
from .data_parser import LangTableReader
from data_parser import LangTableReader
from .utils import REPLAYS_DIR
except ImportError:
LangTableReader = None # Running directly, not as module