From df13a0edc29cf4eba6f232370009968b7110c377 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 8 Sep 2013 22:12:08 +0200 Subject: [PATCH] Ignore modules with only .pyc files in them. --- couchpotato/core/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/loader.py b/couchpotato/core/loader.py index f101105..2016d28 100644 --- a/couchpotato/core/loader.py +++ b/couchpotato/core/loader.py @@ -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)