Ignore modules with only .pyc files in them.

This commit is contained in:
Ruud
2013-09-08 22:12:08 +02:00
parent 52a0de3b59
commit df13a0edc2
+1 -1
View File
@@ -91,7 +91,7 @@ class Loader(object):
for cur_file in glob.glob(os.path.join(dir_name, '*')):
name = os.path.basename(cur_file)
if os.path.isdir(os.path.join(dir_name, name)) and name != 'static':
if os.path.isdir(os.path.join(dir_name, name)) and name != 'static' and os.path.isfile(os.path.join(cur_file, '__init__.py')):
module_name = '%s.%s' % (module, name)
self.addModule(priority, plugin_type, module_name, name)