diff 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
line wrap: on
line diff
--- a/wiki/server/moin.py	Thu Feb 21 21:40:46 2008 +0100
+++ b/wiki/server/moin.py	Fri Feb 22 21:59:32 2008 +0100
@@ -1,2 +1,24 @@
-# see the toplevel directory for the real moin.py
+#!/usr/bin/env python
+"""
+    Start script for the standalone Wiki server.
 
+    @copyright: 2007 MoinMoin:ForrestVoight
+    @license: GNU GPL, see COPYING for details.
+"""
+
+import sys
+import os
+
+from MoinMoin.script import MoinScript
+
+# 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)
+
+if __name__ == '__main__':
+    sys.argv = ["moin.py", "server", "standalone"]
+    MoinScript().run()