7 def stupidConfig(config
):
9 for atts
in config
: a
.update({atts
[0]:atts
[1]})
13 config
= ConfigParser
.ConfigParser()
15 for section
in config
.sections():
16 module
= __import__('sinks.%s'%section
.lower(),globals(),locals(),section
.lower())
17 s
.append(getattr(module
, 'sink')(stupidConfig(config
.items(section
))))
21 print "initializing..."
22 if os
.path
.isdir('config'):
23 for file in os
.listdir('config'):
24 files
.append(getSinks(os
.path
.join('config',file)))
26 print "done initializing..."