psin_dialogue: put the tools directory on sys.path before importing psin_data (CI-PSIN-DIALOGUE-SIBLING-PATH)

This commit is contained in:
Bloh09
2026-11-28 18:15:18 -08:00
parent bbbdba8c4b
commit 035abbc54a

View File

@ -1,8 +1,13 @@
"""Read speaker slots and subtitle labels from typed PSIN conversation records."""
import collections
import os
import re
import struct
import sys
# `python -I` implies `-P`, so the script's directory is not on sys.path; the sibling modules are next to it.
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from psin_data import Container