Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 0c4dc447c4
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (20 sloc) 0.651 kB
import logging
from os import path
import site
import sys
mydir = path.dirname(path.abspath(__file__))
site.addsitedir(mydir)
site.addsitedir(path.join(mydir, 'vendor/lib/python'))
from auslib.client.base import app as application
from auslib.client.base import AUS
from auslib.config import AUSConfig
cfg = AUSConfig('/etc/aus/client.ini')
errors = cfg.validate()
if errors:
print >>sys.stderr, "Invalid configuration file:"
for err in errors:
print >>sys.stderr, err
sys.exit(1)
logging.basicConfig(filename=cfg.getLogfile(), level=cfg.getLogLevel())
AUS.setDb(cfg.getDburi())
AUS.setSpecialHosts(cfg.getSpecialForceHosts())
Jump to Line
Something went wrong with that request. Please try again.