Fix detection script on macos

This fixes the script on macos
This commit is contained in:
DaniAndTheWeb 2023-01-14 12:10:45 +01:00 committed by GitHub
parent a407c9f014
commit 54fa77facc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,8 @@ def check_gpu():
return "NVIDIA" return "NVIDIA"
else: else:
return "Unknown" return "Unknown"
else:
return "Unknown"
else: else:
# If the `lspci` command is available, use it to get the GPU vendor and model information # If the `lspci` command is available, use it to get the GPU vendor and model information
output = os.popen("lspci | grep -i vga").read() output = os.popen("lspci | grep -i vga").read()