diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-11-09 15:27:05 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-11-09 15:27:05 +0000 |
commit | 08bc3a29d75b918b4769969345f6fc8b9e763866 (patch) | |
tree | 49bc006d7b403bb345a33b5ae17f597040dcdeec | |
parent | 4ff70ee8ecf15e96c59ac707a377ad01e873cbbc (diff) | |
download | pykolab-08bc3a29d75b918b4769969345f6fc8b9e763866.tar.gz |
Fix not loading plugins from installed packages
-rw-r--r-- | pykolab/plugins/__init__.py | 7 |
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,)): |