Skip to content
Permalink
Browse files
Fix #2055 for .py[cod], too
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 12, 2015
1 parent 82f474f commit 1a2f1b5d8eeb28ff64e2a67f3533faf52e7225b0
Showing with 1 addition and 0 deletions.
  1. +1 −0 nikola/plugins/command/auto/__init__.py
@@ -263,6 +263,7 @@ def do_rebuild(self, event):
if (fname.endswith('~') or
fname.startswith('.') or
'__pycache__' in event_path or
'.pyc' in event_path or '.pyo' in event_path or '.pyd' in event_path or
os.path.isdir(event_path)): # Skip on folders, these are usually duplicates
return
self.logger.info('REBUILDING SITE (from {0})'.format(event_path))

0 comments on commit 1a2f1b5

Please sign in to comment.