diff options
author | Christian Franke <nobody@nowhere.ws> | 2011-10-28 02:23:08 +0200 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2011-10-28 02:25:47 +0200 |
commit | 16389a6f7f4afbd3856a1f6803a046ca8127b4c0 (patch) | |
tree | e32c4939dc8ff9de885c4f0cd47774aaf85a8f33 | |
parent | 03d70e52539b9d515cc687fd73f3887de945f83e (diff) |
Fix news.py not to load vim swapfiles
-rw-r--r-- | scripts/news.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/news.py b/scripts/news.py index ca9dfb4..1f291c7 100644 --- a/scripts/news.py +++ b/scripts/news.py @@ -6,7 +6,8 @@ import os class NewsPlugin: def __init__(self): newspath = os.path.join(template.path, 'news') - newsfiles = [ os.path.join(newspath, entry) for entry in sorted(os.listdir(newspath)) ] + newsfiles = [ os.path.join(newspath, entry) for entry in sorted(os.listdir(newspath)) \ + if not entry.startswith('.') ] self._news = [] for newsfile in reversed(newsfiles): |