blob: 9cfd9510d67c2cb8e0bccd00c703179ff03cdb0e [file] [log] [blame]
Sapan Bhatia26d40bc2014-05-12 15:28:02 -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
10"""
11for 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]
18"""