view wk.py @ 250:4d525dab3e1b

Use the simple Mercurial source-control temporarily. The command-server implementation is faster in an environment that only has one process (such as a Python interpreter), but leaks command-server processes in a multi-process environment (such as Apache mod_wsgi). Also moved the factory building code to separate functions.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 30 Mar 2014 23:27:44 -0700
parents 2dd7535045eb
children
line wrap: on
line source

#!/usr/local/bin/python
import sys
import logging
import colorama
from wikked.witch import ColoredFormatter, main


# Configure logging.
colorama.init()
root_logger = logging.getLogger()
handler = logging.StreamHandler(stream=sys.stdout)
handler.setFormatter(ColoredFormatter('%(message)s'))
root_logger.addHandler(handler)


if __name__ == "__main__":
    main()