mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-26 16:32:06 +08:00
1139fe507b
* move hardware to system/ * fix mypy
17 lines
325 B
Python
17 lines
325 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 = TICI
|
|
PC = not TICI
|
|
|
|
|
|
if TICI:
|
|
HARDWARE = cast(HardwareBase, Tici())
|
|
else:
|
|
HARDWARE = cast(HardwareBase, Pc())
|