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
def run(): """ runs the actual daemon in the foreground """ maiscreenz = Maiscreenz() maiscreenz.load_config() maiscreenz.start_watching()
def install_config(): """ write a sample config file """ maiscreenz = Maiscreenz() maiscreenz.write_sample_config()