proxy: Make sure root pages get the right theme.
[matthijs/projects/wipi.git] / wipi.fcgi
1 #!/usr/bin/python
2 # -*- coding: iso-8859-1 -*-
3 """
4     MoinMoin - FastCGI Driver Script
5     
6     @copyright: 2008 MoinMoin:ThomasWaldmann
7     @license: GNU GPL, see COPYING for details.
8 """
9
10 import sys, os
11
12 # Define the path to our config relative to where we are.
13 confdir = os.path.join(os.path.dirname(__file__), 'conf')
14
15 # Put our config in the python path
16 sys.path.insert(0, confdir)
17
18 # Load a logging conf
19 from MoinMoin import log
20 log.load_config(os.path.join(confdir, 'logging.conf'))
21
22 from MoinMoin.web.flup_frontend import CGIFrontEnd
23
24 options = [
25             # Show errors in the output
26             #"--debug", "web",
27           ]
28 CGIFrontEnd().run(options)