aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/plugin.py')
-rw-r--r--libbe/plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbe/plugin.py b/libbe/plugin.py
index 5f0fa4d..f567cbb 100644
--- a/libbe/plugin.py
+++ b/libbe/plugin.py
@@ -26,8 +26,9 @@ def get_plugin(prefix, name):
"""
>>> get_plugin("becommands", "asdf") is None
True
- >>> get_plugin("becommands", "list")
- <module 'becommands.list' from '/home/abentley/be/becommands/list.pyc'>
+ >>> q = repr(get_plugin("becommands", "list"))
+ >>> q.startswith("<module 'becommands.list' from ")
+ True
"""
dirprefix = '/'.join(prefix.split('.'))
command_path = os.path.join(plugin_path, dirprefix, name+".py")