mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 09:08:38 +00:00
psin_dialogue: put the tools directory on sys.path before importing psin_data (CI-PSIN-DIALOGUE-SIBLING-PATH)
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user