Commit c057c605 authored by Philipp Hörist's avatar Philipp Hörist

PluginManager: Load plugins on Windows correctly

On Windows we ship compiled files
parent ca4c2d67
Pipeline #5840 passed with stages
in 4 minutes and 2 seconds
......@@ -130,11 +130,15 @@ class Plugin:
def load_module(self):
moduel_path = self.path / ''
module_path = self.path / ''
if not module_path.exists():
# On Windows we only ship compiled files
module_path = self.path/ '__init__.pyc'
module_name = self.path.stem
spec = spec_from_file_location(module_name, moduel_path)
spec = spec_from_file_location(module_name, module_path)
if spec is None:
return None
module = module_from_spec(spec)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment