mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-05 12:03:45 +08:00
13 lines
290 B
Python
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
|