summaryrefslogtreecommitdiffstats
path: root/pykolab/plugins/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/plugins/__init__.py')
-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,)):