diff options
author | Simo Sorce <simo@redhat.com> | 2014-03-13 16:43:18 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-03-13 17:41:42 -0400 |
commit | 2b4eaec2d2d7009d3181d986bdf31e7698644949 (patch) | |
tree | bc40cc7fd27e7605ed204295ba51aa1d4dcccfc4 /ipsilon/util/plugin.py | |
parent | db1645c840ee0e6ee04a6e84f68fb51d026e11a6 (diff) | |
download | ipsilon.git-2b4eaec2d2d7009d3181d986bdf31e7698644949.tar.gz ipsilon.git-2b4eaec2d2d7009d3181d986bdf31e7698644949.tar.xz ipsilon.git-2b4eaec2d2d7009d3181d986bdf31e7698644949.zip |
Fix default and example paths
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/util/plugin.py')
-rwxr-xr-x | ipsilon/util/plugin.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ipsilon/util/plugin.py b/ipsilon/util/plugin.py index 045cc75..5a517e4 100755 --- a/ipsilon/util/plugin.py +++ b/ipsilon/util/plugin.py @@ -26,11 +26,7 @@ from ipsilon.util.data import Store class Plugins(object): - def __init__(self, path=None): - if path is None: - self._path = os.getcwd() - else: - self._path = path + def __init__(self): self._providers_tree = None def _load_class(self, tree, class_type, file_name): @@ -83,7 +79,7 @@ class PluginLoader(object): if config is None: config = dict() - p = Plugins(path=cherrypy.config['base.dir']) + p = Plugins() (pathname, dummy) = os.path.split(inspect.getfile(baseobj)) self._plugins = { 'config': config, |