Skip to content

Commit

Permalink
Fix #2113 -- rebuild when Nikola is modified
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Feb 11, 2016
1 parent 8fd1de0 commit f4b38ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nikola/plugins/command/auto/__init__.py
Expand Up @@ -61,7 +61,7 @@
FileSystemEventHandler = object
PatternMatchingEventHandler = object


import nikola
from nikola.plugin_categories import Command
from nikola.utils import dns_sd, req_missing, get_logger, get_theme_path, STDERR_HANDLER
LRJS_PATH = os.path.join(os.path.dirname(__file__), 'livereload.js')
Expand Down Expand Up @@ -167,6 +167,8 @@ def _execute(self, options, args):
watched.add(item)
for item in self.site.config['LISTINGS_FOLDERS']:
watched.add(item)
# Nikola itself (useful for developers)
watched.add(os.path.dirname(nikola.__file__))

This comment has been minimized.

Copy link
@ralsina

ralsina Feb 11, 2016

Member

Maybe also the locations for the plugins?

This comment has been minimized.

Copy link
@Kwpolska

Kwpolska Feb 11, 2016

Author Member

Fixed in 5a6ad54.

out_folder = self.site.config['OUTPUT_FOLDER']
if options and options.get('browser'):
Expand Down

0 comments on commit f4b38ae

Please sign in to comment.