summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-17 14:34:47 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-17 14:34:47 +0200
commit84df4377e0794d657b783a93b5a15ccfcaa375f2 (patch)
tree3a8d4021e294dd2dd9932794cd8c52953e1c358e /client
parentbc60d52846ba11369f73a80a394345b47caea876 (diff)
downloadjasper-client-84df4377e0794d657b783a93b5a15ccfcaa375f2.tar.gz
jasper-client-84df4377e0794d657b783a93b5a15ccfcaa375f2.zip
Use jasperpath in brain.py
Diffstat (limited to 'client')
-rw-r--r--client/brain.py3
1 files changed, 2 insertions, 1 deletions
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: