summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-11 16:09:52 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-11 16:09:52 +0200
commit3cfd67e521ef7ac8abb381fec7bd1240dc183aad (patch)
treec9d797f8f4ac4d2729b943a4869dc9d7231e1f25 /client
parent5be928790db5b7a65b306bf0b4f535f2d321e8da (diff)
downloadjasper-client-3cfd67e521ef7ac8abb381fec7bd1240dc183aad.tar.gz
jasper-client-3cfd67e521ef7ac8abb381fec7bd1240dc183aad.zip
Fixed wrong module import path in client.brain
Diffstat (limited to 'client')
-rw-r--r--client/brain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/brain.py b/client/brain.py
index 7da7439..83b119c 100644
--- a/client/brain.py
+++ b/client/brain.py
@@ -42,11 +42,11 @@ class Brain(object):
module, a priority of 0 is assumed.
"""
- module_locations = [os.path.join(os.getenv('JASPER_HOME'), 'client', 'modules')]
+ module_locations = [os.path.join(os.path.dirname(__file__), 'modules')]
module_names = [name for loader, name, ispkg in pkgutil.iter_modules(module_locations)]
modules = []
for name in module_names:
- mod = importlib.import_module("client.modules.%s" % name)
+ mod = importlib.import_module("modules.%s" % name)
if hasattr(mod, 'WORDS'):
modules.append(mod)
modules.sort(key=lambda mod: mod.PRIORITY if hasattr(mod,'PRIORITY') else 0, reverse=True)