Example #1
0
def init():
    global handler
    if settings.is_fake():
        from blinktpi import blinktshandler_faker
        handler = blinkthandler_faker
    else:
        from blinktpi import blinkthandler
        handler = blinkthandler
    return
Example #2
0
def init():
    global handler
    if settings.is_fake():
        from buttonpi import piface_faker
        handler = piface_faker
    else:
        from buttonpi import piface
        handler = piface
    return
Example #3
0
def init():
    global handler
    if settings.is_fake():
        from camerapi import camerahandler_faker
        handler = camerahandler_faker
    else:
        from camerapi import camerahandler
        handler = camerahandler
    return
Example #4
0
def init():
    global handler
    if settings.is_fake():
        from blinktpi import blinktshandler_faker
        handler = blinkthandler_faker
    else:
        from blinktpi import blinkthandler
        handler = blinkthandler
    return
Example #5
0
def init():
    global handler
    if settings.is_fake():
        from statuspi import statushandler_faker
        handler = statushandler_faker
    else:
        from statuspi import statushandler
        handler = statushandler
    return
Example #6
0
def init():
    global handler
    if settings.is_fake():
        from statuspi import statushandler_faker
        handler = statushandler_faker
    else:
        from statuspi import statushandler
        handler = statushandler
    return
Example #7
0
def init():
    global handler
    if settings.is_fake():
        from buttonpi import piface_faker
        handler = piface_faker
    else:
        from buttonpi import piface
        handler = piface
    return
Example #8
0
def init():
    global handler
    if settings.is_fake():
        from doorpi import gpio_faker
        handler = gpio_faker
    else:
        from doorpi import gpio
        handler = gpio
    return
Example #9
0
def init():
    global handler
    if settings.is_fake():
        from sensorpi import read_faker
        handler = read_faker
    else:
        from sensorpi import read
        handler = read
    return