view moin.py @ 3200:6a83a46ccf59

Added support for the comment elements by implementing the div and span functions. The comment is mapped as the remark entity in docbook which can really only be inline, so using the div system might produce invalid docbooks.
author Mikko Virkkilä <mvirkkil@cc.hut.fi>
date Thu, 06 Mar 2008 01:29:59 +0100
parents 79f850129782
children
line wrap: on
line source

#!/usr/bin/env python
"""
    Start script for the standalone Wiki server.

    @copyright: 2007 MoinMoin:ForrestVoight
    @license: GNU GPL, see COPYING for details.
"""

import os, 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')

moinpath = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
sys.path.insert(0, moinpath)
os.chdir(moinpath)

from MoinMoin import log
log.load_config('wiki/config/logging/stderr') # XXX maybe fix path

from MoinMoin.script import MoinScript

if __name__ == '__main__':
    sys.argv = ["moin.py", "server", "standalone"]
    MoinScript().run()