Пример #1
0
def test_config(print_output=True):
    """ test the config file """
    maiscreenz = Maiscreenz()
    result = maiscreenz.validate_config()

    if result and print_output:
        print 'Tests pass!'
        return True
    else:
        return result
Пример #2
0
def run():
    """ runs the actual daemon in the foreground """
    maiscreenz = Maiscreenz()
    maiscreenz.load_config()
    maiscreenz.start_watching()
Пример #3
0
def install_config():
    """ write a sample config file """
    maiscreenz = Maiscreenz()
    maiscreenz.write_sample_config()