summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-11-09 15:27:05 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-11-09 15:27:05 +0000
commit08bc3a29d75b918b4769969345f6fc8b9e763866 (patch)
tree49bc006d7b403bb345a33b5ae17f597040dcdeec /pykolab
parent4ff70ee8ecf15e96c59ac707a377ad01e873cbbc (diff)
downloadpykolab-08bc3a29d75b918b4769969345f6fc8b9e763866.tar.gz
Fix not loading plugins from installed packages
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/plugins/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pykolab/plugins/__init__.py b/pykolab/plugins/__init__.py
index a3dc245..7844d95 100644
--- a/pykolab/plugins/__init__.py
+++ b/pykolab/plugins/__init__.py
@@ -42,7 +42,12 @@ class KolabPlugins(object):
"""
self.plugins = {}
- for plugin_path in [ '/usr/share/pykolab/plugins', './pykolab/plugins' ]:
+ for plugin_path in [
+ os.path.dirname(__file__),
+ '/usr/share/pykolab/plugins',
+ './pykolab/plugins'
+ ]:
+
if os.path.isdir(plugin_path):
for plugin in os.listdir(plugin_path):
if os.path.isdir('%s/%s/' %(plugin_path,plugin,)):