Files
StarPilot/openpilot/common/params_paths.py
T
2026-10-28 11:18:25 -05:00

13 lines
290 B
Python

"""Select persistent device Params independently of native build hardware."""
import os
def params_path(path=""):
if path:
return path
configured = os.environ.get("PARAMS_ROOT")
if configured:
return configured
return "/data/params" if os.path.isfile("/AGNOS") else path