def main():
args = docopt(__doc__, version='0.1')
debug = args["--debug"]
verbose = args["--verbose"]
if not os.path.exists("log"):
os.makedirs("log")
configure_logging("log/lama_dispatcher.log", debug=debug, verbose=verbose)
cmd_line = "COMMAND : "+" ".join(sys.argv)
logging.info(cmd_line)
try:
Lamadb.create_db()
LamaFtp.create_ftp()
Dispatcher.dispatch()
except KeyboardInterrupt:
Dispatcher.stop_dispatch()
评论列表
文章目录