view wk.py @ 168:a71822a4beed

Refactoring to not better use Flask, only when needed: - command-line utility is using plain `argparse`. - no Flask app created unless we want to run a server. - split all commands into sub-modules. - do more initialization stuff in the `WikiParameters`. - make `Wiki` init as cheap as possible. - one `Wiki` instance now created per request.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 22 Jan 2014 21:39:02 -0800
parents e53a3b64dfd8
children c6dd9b0c5009
line wrap: on
line source

#!/usr/local/bin/python
import logging
from wikked.witch import main


# Configure logging.
logging.basicConfig(level=logging.DEBUG,
        format="[%(levelname)s]: %(message)s")


if __name__ == "__main__":
    main()