Skip to content

Commit 7fd7cba

Browse files
committed
glob.glob() Python 3.9 compatibility
1 parent 5d8b58b commit 7fd7cba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_bindings/cuda/bindings/_path_finder_utils/find_nvidia_dynamic_library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def _find_using_nvidia_lib_dirs(so_basename, error_messages, attachments):
1919
return so_name
2020
# Look for a versioned library
2121
# Using sort here mainly to make the result deterministic.
22-
for node in sorted(glob.glob(so_wild, root_dir=lib_dir)):
22+
for node in sorted(glob.glob(os.path.join(lib_dir, so_wild))):
2323
so_name = os.path.join(lib_dir, node)
2424
if os.path.isfile(so_name):
2525
return so_name

0 commit comments

Comments
 (0)