comparison wiki/server/moin.py @ 3071:806cf4814612

get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 22 Feb 2008 21:59:32 +0100
parents 767109c48208
children 79f850129782
comparison
equal deleted inserted replaced
3066:db0a4f4b30d3 3071:806cf4814612
1 # see the toplevel directory for the real moin.py 1 #!/usr/bin/env python
2 """
3 Start script for the standalone Wiki server.
2 4
5 @copyright: 2007 MoinMoin:ForrestVoight
6 @license: GNU GPL, see COPYING for details.
7 """
8
9 import sys
10 import os
11
12 from MoinMoin.script import MoinScript
13
14 # Path to MoinMoin package, needed if you installed with --prefix=PREFIX
15 # or if you did not use setup.py.
16 #sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
17
18 moinpath = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
19 sys.path.insert(0, moinpath)
20 os.chdir(moinpath)
21
22 if __name__ == '__main__':
23 sys.argv = ["moin.py", "server", "standalone"]
24 MoinScript().run()