From 84df4377e0794d657b783a93b5a15ccfcaa375f2 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 17 Sep 2014 14:34:47 +0200 Subject: Use jasperpath in brain.py --- client/brain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/brain.py b/client/brain.py index 039b1db..a1fdea4 100644 --- a/client/brain.py +++ b/client/brain.py @@ -3,6 +3,7 @@ import logging import os import pkgutil import importlib +import jasperpath def logError(): @@ -41,7 +42,7 @@ class Brain(object): module, a priority of 0 is assumed. """ - module_locations = [os.path.join(os.path.dirname(__file__), 'modules')] + module_locations = [jasperpath.PLUGIN_PATH] module_names = [name for loader, name, ispkg in pkgutil.iter_modules(module_locations)] modules = [] for name in module_names: -- cgit v1.3.1