mirror of https://github.com/cowrie/cowrie.git
15 lines
363 B
Python
15 lines
363 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(f)
|
|
return cfg
|
|
return None
|
|
|
|
# vim: set sw=4 et:
|