blob: 9cfd9510d67c2cb8e0bccd00c703179ff03cdb0e [file] [log] [blame]
import os
deleters = {}
_path = os.path.join('.',os.path.dirname(__file__))
_files = os.listdir(_path)
_files = filter(lambda x:x.endswith('deleter.py'),_files)
_files = map(lambda x:x.rstrip('.py'),_files)
"""
for f in _files:
m = __import__(f)
deleter = getattr(m,f.title().replace('_',''))
try:
deleters[deleter.model].append(deleter)
except KeyError:
deleters[deleter.model]=[deleter]
"""