if os.path.exists("/proc/device-tree/compatible"):
     with open("/proc/device-tree/compatible", "rb") as f:
         compat = f.read()
     if b"nvidia,tegra" in compat:
         board_reqs = ["Jetson.GPIO"]
 if os.path.exists("/proc/device-tree/compatible"):
     with open("/proc/device-tree/compatible", "rb") as f:
         compat = f.read()
     if b"nvidia,tegra" in compat:
         board_reqs = ["Jetson.GPIO"]