Added missing check if LD_LIBRARY_PATH exists. #588
This commit is contained in:
parent
6ec4f0c374
commit
f4996978db
|
@ -63,15 +63,16 @@ def generate_bug_report_information():
|
|||
print('')
|
||||
|
||||
print_header("LD_LIBRARY CUDA PATHS")
|
||||
lib_path = os.environ['LD_LIBRARY_PATH'].strip()
|
||||
for path in set(lib_path.split(':')):
|
||||
try:
|
||||
if isdir(path):
|
||||
print_header(f"{path} CUDA PATHS")
|
||||
paths = find_file_recursive(path, '*cuda*so')
|
||||
print(paths)
|
||||
except:
|
||||
print(f'Could not read LD_LIBRARY_PATH: {path}')
|
||||
if 'LD_LIBRARY_PATH' in os.environ:
|
||||
lib_path = os.environ['LD_LIBRARY_PATH'].strip()
|
||||
for path in set(lib_path.split(':')):
|
||||
try:
|
||||
if isdir(path):
|
||||
print_header(f"{path} CUDA PATHS")
|
||||
paths = find_file_recursive(path, '*cuda*so')
|
||||
print(paths)
|
||||
except:
|
||||
print(f'Could not read LD_LIBRARY_PATH: {path}')
|
||||
print('')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user