mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-07 22:12:05 +08:00
32da3d10c7
version: dragonpilot v0.8.16 release date: 2022-08-14T16:03:36 dp-dev(priv) master commit: 9a40536565e6da64122ef8c30d7e97523fde518e
17 lines
345 B
Python
17 lines
345 B
Python
import os
|
|
from typing import cast
|
|
|
|
from system.hardware.base import HardwareBase
|
|
from system.hardware.tici.hardware import Tici
|
|
from system.hardware.pc.hardware import Pc
|
|
|
|
TICI = os.path.isfile('/TICI')
|
|
AGNOS = os.path.isfile('/AGNOS')
|
|
PC = not TICI
|
|
|
|
|
|
if TICI:
|
|
HARDWARE = cast(HardwareBase, Tici())
|
|
else:
|
|
HARDWARE = cast(HardwareBase, Pc())
|