plugin name removed as dir appears with same name
@@ -32,7 +32,7 @@ _NO_OF_FILES_TO_RETAIN = 10
def load_python_plugin(plugin_module_path: str, plugin: str, _type: str) -> Dict:
_plugin = None
- module_name = "fledge.plugins.{}.{}.{}".format(_type, plugin, plugin)
+ module_name = "fledge.plugins.{}.{}".format(_type, plugin)
try:
spec = importlib.util.spec_from_file_location(module_name, "{}/{}.py".format(plugin_module_path, plugin))
_plugin = importlib.util.module_from_spec(spec)
