mirror of https://github.com/cowrie/cowrie.git
15 lines
373 B
Python
15 lines
373 B
Python
|
# Copyright (c) 2009 Upi Tamminen <desaster@gmail.com>
|
||
|
# See the COPYRIGHT file for more information
|
||
|
|
||
|
import ConfigParser, os
|
||
|
|
||
|
def config():
|
||
|
cfg = ConfigParser.ConfigParser()
|
||
|
for f in ('kippo.cfg', '/etc/kippo/kippo.cfg', '/etc/kippo.cfg'):
|
||
|
if os.path.exists(f):
|
||
|
cfg.read('kippo.cfg')
|
||
|
return cfg
|
||
|
return None
|
||
|
|
||
|
# vim: set sw=4 et:
|