Standardize index for integrated GPU check

This commit is contained in:
Hoang Hong Quan
2024-10-09 14:52:25 +07:00
parent f3ab2c2924
commit b8bd94abbe

2
Scripts/smbios.py Normal file → Executable file
View File

@@ -66,7 +66,7 @@ class SMBIOS:
"Integrated GPU" in list(hardware_report.get("GPU").items())[-1][-1].get("Device Type"):
smbios_model = "MacBookPro16,3"
if "Intel" in list(hardware_report.get("GPU").items())[0][-1].get("Manufacturer") and \
if "Intel" in list(hardware_report.get("GPU").items())[-1][-1].get("Manufacturer") and \
"Integrated GPU" in list(hardware_report.get("GPU").items())[-1][-1].get("Device Type"):
codename = list(hardware_report.get("GPU").items())[-1][-1].get("Codename")