def init(): global handler if settings.is_fake(): from blinktpi import blinktshandler_faker handler = blinkthandler_faker else: from blinktpi import blinkthandler handler = blinkthandler return
def init(): global handler if settings.is_fake(): from buttonpi import piface_faker handler = piface_faker else: from buttonpi import piface handler = piface return
def init(): global handler if settings.is_fake(): from camerapi import camerahandler_faker handler = camerahandler_faker else: from camerapi import camerahandler handler = camerahandler return
def init(): global handler if settings.is_fake(): from statuspi import statushandler_faker handler = statushandler_faker else: from statuspi import statushandler handler = statushandler return
def init(): global handler if settings.is_fake(): from doorpi import gpio_faker handler = gpio_faker else: from doorpi import gpio handler = gpio return
def init(): global handler if settings.is_fake(): from sensorpi import read_faker handler = read_faker else: from sensorpi import read handler = read return