8 def stupidConfig(config):
10 for atts in config: a.update({atts[0]:atts[1]})
14 config = ConfigParser.ConfigParser()
16 for section in config.sections():
17 module = __import__('sinks.%s'%section.lower(),globals(),locals(),section.lower())
18 s.append(getattr(module, 'sink')(stupidConfig(config.items(section))))
23 print "initializing..."
24 if os.path.isdir('config'):
25 for file in os.listdir('config'):
26 files.append(getSinks(os.path.join('config',file)))
28 print "done initializing..."
39 def stupidConfig(config):
41 for atts in config: a.update({atts[0]:atts[1]})
45 config = ConfigParser.ConfigParser()
47 for section in config.sections():
48 module = __import__('sinks.%s'%section.lower(), globals(), locals(), section.lower())
49 s.append(getattr(module, 'sink')(stupidConfig(config.items(section))))
53 print "initializing..."
54 for file in os.listdir(directory):
55 files.append(getSinks(os.path.join(directory,file)))
59 print "done initializing..."
62 if os.path.isdir('config'): run('config')>>>>>>> .r14