summaryrefslogtreecommitdiffstats
path: root/packages/net-misc/mozilla-sync/files/SyncServer.wsgi
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net-misc/mozilla-sync/files/SyncServer.wsgi')
-rw-r--r--packages/net-misc/mozilla-sync/files/SyncServer.wsgi14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/net-misc/mozilla-sync/files/SyncServer.wsgi b/packages/net-misc/mozilla-sync/files/SyncServer.wsgi
new file mode 100644
index 0000000..32beed2
--- /dev/null
+++ b/packages/net-misc/mozilla-sync/files/SyncServer.wsgi
@@ -0,0 +1,14 @@
+import os
+import sys
+import site
+from logging.config import fileConfig
+from ConfigParser import NoSectionError
+
+ini_file = os.path.join('/etc/mozilla-sync/SyncServer.ini')
+try:
+ fileConfig(ini_file)
+except NoSectionError:
+ pass
+
+from paste.deploy import loadapp
+application = loadapp('config:%s'% ini_file)