]> code.delx.au - pymsnt/blobdiff - PyMSNt.py
Major changes. Moved everything away from twistd and .tac files. Its nicer this way...
[pymsnt] / PyMSNt.py
diff --git a/PyMSNt.py b/PyMSNt.py
new file mode 100644 (file)
index 0000000..4f120ac
--- /dev/null
+++ b/PyMSNt.py
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+# Make 'cwd'/src in the PYTHONPATH
+import sys, os, os.path
+PATH = os.path.abspath(os.path.dirname(sys.argv[0]))
+os.chdir(PATH)
+PATH = os.path.join(PATH, "src")
+sys.path[0] = PATH
+
+# Start the service
+import main
+main.main()
+