diff --git a/scripts/pylib/twister/twisterlib/runner.py b/scripts/pylib/twister/twisterlib/runner.py index 76fe29b9b8551f..287069f47d87e8 100644 --- a/scripts/pylib/twister/twisterlib/runner.py +++ b/scripts/pylib/twister/twisterlib/runner.py @@ -23,7 +23,6 @@ import elftools import yaml from colorama import Fore -from domains import Domains from elftools.elf.elffile import ELFFile from elftools.elf.sections import SymbolTableSection from packaging import version @@ -39,6 +38,10 @@ if sys.platform == 'linux': from twisterlib.jobserver import GNUMakeJobClient, GNUMakeJobServer, JobClient +from twisterlib.environment import ZEPHYR_BASE + +sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers")) +from domains import Domains from twisterlib.environment import TwisterEnv from twisterlib.harness import HarnessImporter, Pytest from twisterlib.log_helper import log_command