import importlib
import glob
import os

#Import all python files as submodule
for f in glob.glob(os.path.dirname(__file__) + "/*.py"):
  if os.path.isfile(f) and not f.endswith('__init__.py') and \
          not f.endswith('AbstractPlugin.py') and f.endswith('Plugin.py'):
    moduleName = os.path.splitext(os.path.basename(f))[0]
    importlib.import_module('.' + moduleName, 'redeem.plugins')
