annotate 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
rev   line source
3071
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
1 #!/usr/bin/env python
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
2 """
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
3 Start script for the standalone Wiki server.
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
4
3071
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
5 @copyright: 2007 MoinMoin:ForrestVoight
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
6 @license: GNU GPL, see COPYING for details.
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
7 """
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
8
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
9 import sys
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
10 import os
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
11
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
12 from MoinMoin.script import MoinScript
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
13
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
14 # Path to MoinMoin package, needed if you installed with --prefix=PREFIX
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
15 # or if you did not use setup.py.
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
16 #sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
17
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
18 moinpath = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
19 sys.path.insert(0, moinpath)
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
20 os.chdir(moinpath)
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
21
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
22 if __name__ == '__main__':
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
23 sys.argv = ["moin.py", "server", "standalone"]
806cf4814612 get server/request package in sync with 1.6 branch (as of changeset 2559:eedcb9cfefdb)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1603
diff changeset
24 MoinScript().run()