""" MoinMoin - WSGI application @copyright: 2005 by Anakim Border @license: GNU GPL, see COPYING for details. """ use_threads = True unixSocketPath = '/tmp/moin.sock' import sys # Path to MoinMoin package, needed if you installed with --prefix=PREFIX # or if you did not use setup.py. ## sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages') # Set threads flag, so other code can use proper locking from MoinMoin import config config.use_threads = use_threads del config from flup.server.fcgi import WSGIServer from MoinMoin.server.wsgi import moinmoinApp import os if __name__ == '__main__': server = WSGIServer(moinmoinApp, bindAddress=unixSocketPath) server.run() os.unlink(unixSocketPath)