Browse Source

Fix Plugin.module_name()

Hicham Benjelloun 7 years ago
parent
commit
5a49878df4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lodel/plugin/plugins.py

+ 1
- 1
lodel/plugin/plugins.py View File

@@ -432,7 +432,7 @@ name differ from the one found in plugin's init file"
432 432
     ##@brief Return associated module name
433 433
     def module_name(self):
434 434
         path_array = self.path.split('/')
435
-        if not self.path.startswith('./plugins'):
435
+        if 'plugins' not in self.path:
436 436
             raise PluginError("Bad path for plugin %s : %s" % (
437 437
                 self.name, self.path))
438 438
         return '.'.join(['lodel'] + path_array[path_array.index('plugins'):])

Loading…
Cancel
Save