1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-31 03:29:03 +01:00

Fix Plugin.module_name()

This commit is contained in:
Hicham Benjelloun 2017-03-16 18:08:37 +01:00
commit 5a49878df4

View file

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