Browse Source

discover_plugin() function with the is_plugin_dir() class Method checking

m.orban 8 years ago
parent
commit
c7278e65b7
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lodel/plugin/plugins.py

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

@@ -119,8 +119,8 @@ class Plugin(object):
119 119
             dirname = os.path.dirname(plugin_path)
120 120
             for f in os.listdir(plugin_path):
121 121
                 file_name = ''.join(dirname, f)
122
-                if f == '__init__.py':
123
-                    self.check(file_name)
122
+                if self.is_plugin_dir(file_name):
123
+                    return self.is_plugin_dir(file_name)
124 124
                 else:
125 125
                     self._discover_plugin(file_name)
126 126
         else:

Loading…
Cancel
Save