diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-18 21:02:53 -0400 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-18 21:02:53 -0400 |
| commit | 8c8038c08fcf489d16591d9271a9c91acab2da99 (patch) | |
| tree | 238be7f8897df0c10f38e0b825fbd0c1231189cc /client/brain.py | |
| parent | 1c802f6ee791b9b18fbc3ad2791e94e083af3fde (diff) | |
| parent | 21cc35e631c87251efecf9b725d6bd313349ad18 (diff) | |
| download | jasper-client-8c8038c08fcf489d16591d9271a9c91acab2da99.tar.gz jasper-client-8c8038c08fcf489d16591d9271a9c91acab2da99.zip | |
Merge pull request #178 from Holzhaus/jasperpath
Add dedicated path module
Diffstat (limited to 'client/brain.py')
| -rw-r--r-- | client/brain.py | 3 |
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: |
