mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-20 02:23:56 +08:00
version: dragonpilot v0.9.4 release date: 2023-07-05T18:59:41 dp-dev(priv) master commit: 7b0489feab40283a422d2201ef95a9cb8c06f6cd
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())
|