Skip to content

Commit c409346

Browse files
committed
A couple trivial tweaks
1 parent 9721079 commit c409346

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

cuda_bindings/cuda/bindings/_path_finder/find_nvidia_dynamic_library.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Copyright 2024-2025 NVIDIA Corporation. All rights reserved.
2-
#
32
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
43

54
import functools
65
import glob
76
import os
7+
import sys
88

9-
from .cuda_paths import IS_WIN32, get_cuda_paths
9+
from .cuda_paths import get_cuda_paths
1010
from .supported_libs import is_suppressed_dll_file
1111
from .sys_path_find_sub_dirs import sys_path_find_sub_dirs
1212

@@ -122,7 +122,7 @@ def __init__(self, libname: str):
122122
self.attachments = []
123123
self.abs_path = None
124124

125-
if IS_WIN32:
125+
if sys.platform == "win32":
126126
self.abs_path = _find_dll_using_nvidia_bin_dirs(libname, self.error_messages, self.attachments)
127127
if self.abs_path is None:
128128
if libname == "nvvm":

cuda_bindings/cuda/bindings/_path_finder/supported_libs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Copyright 2025 NVIDIA Corporation. All rights reserved.
2-
#
32
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
43

54
# THIS FILE NEEDS TO BE REVIEWED/UPDATED FOR EACH CTK RELEASE

cuda_bindings/cuda/bindings/_path_finder/sys_path_find_sub_dirs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Copyright 2024-2025 NVIDIA Corporation. All rights reserved.
2-
#
32
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
43

54
import functools

0 commit comments

Comments
 (0)