2014-08-09 20:48:34 +00:00
|
|
|
# Copyright (c) 2009-2014 Upi Tamminen <desaster@gmail.com>
|
2009-11-22 07:07:58 +00:00
|
|
|
# See the COPYRIGHT file for more information
|
|
|
|
|
2014-11-11 17:27:06 +00:00
|
|
|
import os
|
|
|
|
import ConfigParser
|
2009-11-22 07:07:58 +00:00
|
|
|
|
|
|
|
def config():
|
|
|
|
cfg = ConfigParser.ConfigParser()
|
|
|
|
for f in ('kippo.cfg', '/etc/kippo/kippo.cfg', '/etc/kippo.cfg'):
|
|
|
|
if os.path.exists(f):
|
2009-11-27 20:44:01 +00:00
|
|
|
cfg.read(f)
|
2009-11-22 07:07:58 +00:00
|
|
|
return cfg
|
|
|
|
return None
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|