Only enable source code reloading for normal action
This commit is contained in:
parent
32ca6ac1a7
commit
20e3dc5fa7
1 changed files with 5 additions and 4 deletions
|
@ -23,6 +23,7 @@ class DebugReloader:
|
|||
if pyfilesystem:
|
||||
self.directory = directory
|
||||
self.callback = callback
|
||||
if config.action == "main":
|
||||
logging.debug("Adding autoreload: %s, cb: %s" % (directory, callback))
|
||||
thread = threading.Thread(target=self.addWatcher)
|
||||
thread.daemon = True
|
||||
|
|
Loading…
Reference in a new issue