Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/lbaf/Utils/lbsJSONTaskLister.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@
import json
import yaml
import argparse

import sys
import importlib
if importlib.util.find_spec("lbaf") is None:
sys.path.insert(0, f"{os.sep}".join(os.path.abspath(__file__).split(os.sep)[:-3]))
from lbaf.IO.lbsVTDataReader import LoadReader
from lbaf.Utils.lbsLogging import get_logger, Logger
from typing import Optional
Expand Down Expand Up @@ -159,7 +162,7 @@

# Write the extracted tasks to the output YAML file
try:
with open(self.__output_file, 'w') as file:

Check warning on line 165 in src/lbaf/Utils/lbsJSONTaskLister.py

View workflow job for this annotation

GitHub Actions / code-quality (ubuntu-latest, 3.8)

Using open without explicitly specifying an encoding (unspecified-encoding)
yaml.safe_dump(tasks, file)
self.__logger.info(f"Tasks successfully written to {self.__output_file}")
except IOError as e:
Expand Down
Loading