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, 2 insertions, 0 deletions
diff --git a/libbe/plugin.py b/libbe/plugin.py
index 05a4398..0964fba 100644
--- a/libbe/plugin.py
+++ b/libbe/plugin.py
@@ -36,6 +36,8 @@ def iter_plugins(prefix):
modfiles = os.listdir(os.path.join(plugin_path, prefix))
modfiles.sort()
for modfile in modfiles:
+ if modfile.startswith('.'):
+ continue # the occasional emacs temporary file
if modfile.endswith(".py") and modfile != "__init__.py":
yield modfile[:-3], my_import(prefix+"."+modfile[:-3])