Skip to content
Permalink
Browse files
Better .py[cod] handling
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 12, 2015
1 parent 1a2f1b5 commit 5c1c7ed6935f68b02920db4420bceb938bbfaa68
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/command/auto/__init__.py
@@ -263,7 +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
event_path.endswith(('.pyc', '.pyo', '.pyd')) 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 5c1c7ed

Please sign in to comment.