File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def generate_bug_report_information():
56
56
print_header ("LD_LIBRARY CUDA PATHS" )
57
57
if 'LD_LIBRARY_PATH' in os .environ :
58
58
lib_path = os .environ ['LD_LIBRARY_PATH' ].strip ()
59
- for path in set (lib_path .split (':' if not os .sep == " \\ " else ";" )):
59
+ for path in set (lib_path .split (os .pathsep )):
60
60
try :
61
61
if isdir (path ):
62
62
print_header (f"{ path } CUDA PATHS" )
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def is_cublasLt_compatible(cc):
198
198
return has_cublaslt
199
199
200
200
def extract_candidate_paths (paths_list_candidate : str ) -> Set [Path ]:
201
- return {Path (ld_path ) for ld_path in paths_list_candidate .split (";" if os .sep == " \\ " else ":" ) if ld_path }
201
+ return {Path (ld_path ) for ld_path in paths_list_candidate .split (os .pathsep ) if ld_path }
202
202
203
203
204
204
def remove_non_existent_dirs (candidate_paths : Set [Path ]) -> Set [Path ]:
You can’t perform that action at this time.
0 commit comments