blob: 9cfd9510d67c2cb8e0bccd00c703179ff03cdb0e [file] [log] [blame]
Sapan Bhatiadbaf1932013-09-03 11:28:52 -04001import os
2
3deleters = {}
4_path = os.path.join('.',os.path.dirname(__file__))
5
6_files = os.listdir(_path)
7_files = filter(lambda x:x.endswith('deleter.py'),_files)
8_files = map(lambda x:x.rstrip('.py'),_files)
9
Sapan Bhatiad3d122e2013-09-03 11:58:50 -040010"""
Sapan Bhatiadbaf1932013-09-03 11:28:52 -040011for f in _files:
12 m = __import__(f)
13 deleter = getattr(m,f.title().replace('_',''))
14 try:
15 deleters[deleter.model].append(deleter)
16 except KeyError:
17 deleters[deleter.model]=[deleter]
Sapan Bhatiad3d122e2013-09-03 11:58:50 -040018"""