code: def register_plugin_dir(path):
      
      import glob
      for f in glob.glob(path + '/*.py'):
          for k, v in load_plugins_from_module(f).items():
              if k:
                  global_registry[k] = v
docs: Find plugins in given directory