After loading the user's settings and supplied configuration files, make
the dts folder the working directory for the runner.

This allows DTS to easily access the local DPDK tree.

Signed-off-by: Luca Vizzarro <luca.vizza...@arm.com>
Reviewed-by: Paul Szczepanek <paul.szczepa...@arm.com>
---
 dts/main.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dts/main.py b/dts/main.py
index fa878cc16e..5de65c8a50 100755
--- a/dts/main.py
+++ b/dts/main.py
@@ -3,9 +3,12 @@
 # Copyright(c) 2010-2014 Intel Corporation
 # Copyright(c) 2022 PANTHEON.tech s.r.o.
 # Copyright(c) 2022 University of New Hampshire
+# Copyright(c) 2025 Arm Limited
 
 """The DTS executable."""
 
+import os
+
 from framework import settings
 
 
@@ -23,6 +26,9 @@ def main() -> None:
     from framework.runner import DTSRunner
 
     dts = DTSRunner()
+
+    # After loading up, make the dts folder the current working directory.
+    os.chdir(os.path.dirname(os.path.abspath(__file__)))
     dts.run()
 
 
-- 
2.43.0

Reply via email to