Update modeld.py

This commit is contained in:
discountchubbs
2026-08-28 15:16:18 -07:00
parent 9042a80dc9
commit 573f7bb50e
+2 -2
View File
@@ -62,8 +62,8 @@ def _find_driving_pkl(bundle):
if bundle and bundle.models:
from openpilot.common.hardware.hw import Paths
for model in bundle.models:
if (file_name := getattr(model.artifact, 'fileName', None)):
if _pkl_exists(path := os.path.join(Paths.model_root(), file_name)):
if pkl_name := bundle.models[0].artifact.fileName:
if _pkl_exists(path := os.path.join(Paths.model_root(), pkl_name)):
return path
return None