projects
/
cascardo
/
ipsilon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix default and example paths
[cascardo/ipsilon.git]
/
ipsilon
/
util
/
plugin.py
diff --git
a/ipsilon/util/plugin.py
b/ipsilon/util/plugin.py
index
045cc75
..
5a517e4
100755
(executable)
--- a/
ipsilon/util/plugin.py
+++ b/
ipsilon/util/plugin.py
@@
-26,11
+26,7
@@
from ipsilon.util.data import Store
class Plugins(object):
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):
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()
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,
(pathname, dummy) = os.path.split(inspect.getfile(baseobj))
self._plugins = {
'config': config,