Skip to content

Commit 3203329

Browse files
authored
#587: modified import (#588)
1 parent 460389a commit 3203329

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lbaf/Utils/lbsJSONTaskLister.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@
4949
import json
5050
import yaml
5151
import argparse
52-
52+
import sys
53+
import importlib
54+
if importlib.util.find_spec("lbaf") is None:
55+
sys.path.insert(0, f"{os.sep}".join(os.path.abspath(__file__).split(os.sep)[:-3]))
5356
from lbaf.IO.lbsVTDataReader import LoadReader
5457
from lbaf.Utils.lbsLogging import get_logger, Logger
5558
from typing import Optional

0 commit comments

Comments
 (0)