예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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