mirror of
https://github.com/yweber/lodel2.git
synced 2025-11-01 03:59:02 +01:00
Fix Plugin.module_name()
This commit is contained in:
parent
844b4eafb9
commit
5a49878df4
1 changed files with 1 additions and 1 deletions
|
|
@ -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'):])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue