ソースを参照

Fix Plugin.module_name()

Hicham Benjelloun 7年前
コミット
5a49878df4
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      lodel/plugin/plugins.py

+ 1
- 1
lodel/plugin/plugins.py ファイルの表示

@@ -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'):])

読み込み中…
キャンセル
保存