mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-19 08:12:07 +08:00
c5825aed76
date: 2022-07-14T00:06:12 master commit: 5a7c2f90361e72e9c35e88abd2e11acdc4aba354
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())
|