mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
git-svn-id: https://kippo.googlecode.com/svn/trunk@50 951d7100-d841-11de-b865-b3884708a8e2
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:
|