summaryrefslogtreecommitdiffstats
path: root/packages/net-misc/mozilla-sync/files/SyncServer.wsgi
blob: 32beed2dd943ae2312e88973414090f68772aa67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)