summaryrefslogtreecommitdiffstats
path: root/packages/net-misc/mozilla-sync/files/SyncServer.wsgi
diff options
context:
space:
mode:
authorQuentin Glidic2011-10-07 15:40:27 +0200
committerQuentin Glidic2011-10-07 15:40:27 +0200
commit7a06f220819b9a1a54aac83cf446218e70edb40f (patch)
tree9eea9d6f81b3554acdf127db413a4d10f55edd4d /packages/net-misc/mozilla-sync/files/SyncServer.wsgi
downloadsardemff7-pending-7a06f220819b9a1a54aac83cf446218e70edb40f.tar.xz
Initial exheres
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)