We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c48ea12 commit bdc9852Copy full SHA for bdc9852
1 file changed
backends/nxp/tests_models/executors.py
@@ -11,7 +11,7 @@
11
import subprocess
12
from copy import deepcopy
13
from enum import Enum
14
-from os import mkdir
+from os import mkdir, environ
15
from typing import Callable
16
17
import numpy as np
@@ -593,7 +593,8 @@ def _get_caller_name():
593
594
595
def execute_cmd(cmd, cwd="."):
596
- env = {"LD_LIBRARY_PATH": NSYS_PATH.parent}
+ env = environ.copy() # Copy the current environment
597
+ env["LD_LIBRARY_PATH"] = str(NSYS_PATH.parent)
598
599
with subprocess.Popen(
600
cmd,
0 commit comments