aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/plugin.py')
-rw-r--r--libbe/plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/plugin.py b/libbe/plugin.py
index 234d221..b175733 100644
--- a/libbe/plugin.py
+++ b/libbe/plugin.py
@@ -46,7 +46,7 @@ def get_plugin(prefix, name):
>>> q.startswith("<module 'becommands.list' from ")
True
"""
- dirprefix = '/'.join(prefix.split('.'))
+ dirprefix = os.path.join(*prefix.split('.'))
command_path = os.path.join(plugin_path, dirprefix, name+".py")
if os.path.isfile(command_path):
return my_import(prefix + "." + name)