19 lines
633 B
Python
19 lines
633 B
Python
from config import PLATFORM
|
|
|
|
if PLATFORM == 'raspberry':
|
|
from birbnetes_iot_platform_raspberry import BirbnetesIoTPlatformStatusDriver, BirbnetesIoTPlatformRecordDriver, \
|
|
BirbnetesIoTPlatformPlaybackDriver
|
|
|
|
elif PLATFORM == 'emulator':
|
|
from birbnetes_iot_platform_emulator import BirbnetesIoTPlatformStatusDriver, BirbnetesIoTPlatformRecordDriver, \
|
|
BirbnetesIoTPlatformPlaybackDriver
|
|
|
|
else:
|
|
raise ModuleNotFoundError(f"Could not load platform driver for {PLATFORM}")
|
|
|
|
__all__ = [
|
|
'BirbnetesIoTPlatformStatusDriver',
|
|
'BirbnetesIoTPlatformRecordDriver',
|
|
'BirbnetesIoTPlatformPlaybackDriver'
|
|
]
|