Skip to content

Commit

Permalink
Don't accidentally require watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
adamzap committed Nov 12, 2012
1 parent 00c391c commit 221d1cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/landslide/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import utils
import ConfigParser

from watcher import watch
from subprocess import Popen

import macro as macro_module
Expand Down Expand Up @@ -218,6 +217,8 @@ def execute(self):
self.write_and_log()

if self.watch:
from watcher import watch

self.log(u"Watching %s\n" % self.watch_dir)

watch(self.watch_dir, self.write_and_log)
Expand Down

0 comments on commit 221d1cf

Please sign in to comment.