Add scheduler

This commit is contained in:
Richard Chien
2016-12-03 17:16:16 +08:00
parent 7da292e13b
commit e1210c4e5e
6 changed files with 12 additions and 10 deletions

4
app.py
View File

@ -91,7 +91,7 @@ def _index():
return '', 204
def load_commands():
def _load_commands():
command_mod_files = filter(
lambda filename: filename.endswith('.py') and not filename.startswith('_'),
os.listdir(get_commands_dir())
@ -106,5 +106,5 @@ def load_commands():
if __name__ == '__main__':
load_commands()
_load_commands()
app.run(host='127.0.0.1', port=8888)