We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a2f1b5 commit 5c1c7edCopy full SHA for 5c1c7ed
nikola/plugins/command/auto/__init__.py
@@ -263,7 +263,7 @@ def do_rebuild(self, event):
263
if (fname.endswith('~') or
264
fname.startswith('.') or
265
'__pycache__' in event_path or
266
- '.pyc' in event_path or '.pyo' in event_path or '.pyd' in event_path or
+ event_path.endswith(('.pyc', '.pyo', '.pyd')) or
267
os.path.isdir(event_path)): # Skip on folders, these are usually duplicates
268
return
269
self.logger.info('REBUILDING SITE (from {0})'.format(event_path))
0 commit comments