mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-12 16:32:09 +08:00
eff388b1b6
date: 2023-07-27T18:38:32
master commit: fa310d9e25
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())
|