summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/loader/loader_servant.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/loader/loader_servant.py b/core/loader/loader_servant.py
index 3b729c23..dc6353ff 100644
--- a/core/loader/loader_servant.py
+++ b/core/loader/loader_servant.py
@@ -26,6 +26,7 @@ from os import sys
import imp
import fnmatch
import logging
+from conf import settings
class LoaderServant(object):
@@ -167,6 +168,10 @@ class LoaderServant(object):
for filename in fnmatch.filter(filenames, '[!.]*.py'):
modname = os.path.splitext(os.path.basename(filename))[0]
+ # skip module load if it is excluded by configuration
+ if modname in settings.getValue('EXCLUDE_MODULES'):
+ continue
+
try:
if modname in sys.modules:
mod = sys.modules[modname]