Skip to content

Commit 1f728c0

Browse files
committed
`load_in_subprocess(): Pass current environment
1 parent e0a0143 commit 1f728c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cuda_bindings/cuda/bindings/_path_finder/load_dl_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright 2025 NVIDIA Corporation. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
import os
45
import subprocess # nosec B404
56
import sys
67
from dataclasses import dataclass
@@ -49,6 +50,7 @@ def load_in_subprocess(python_code, timeout=30):
4950
capture_output=True,
5051
encoding="utf-8",
5152
timeout=timeout, # Ensure this does not hang for an excessive amount of time.
53+
env=os.environ, # Pass current environment
5254
)
5355

5456

0 commit comments

Comments
 (0)