From 32c63fb140f3d919eb6d861ebbf3817a74dc321b Mon Sep 17 00:00:00 2001 From: shortcutme Date: Fri, 27 Jan 2017 13:06:09 +0100 Subject: [PATCH] Don't reload source on changes in Test directory --- src/Debug/DebugReloader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Debug/DebugReloader.py b/src/Debug/DebugReloader.py index 02dfffcb..ce30ab3c 100644 --- a/src/Debug/DebugReloader.py +++ b/src/Debug/DebugReloader.py @@ -40,9 +40,11 @@ class DebugReloader: if ( not evt.path or "%s/" % config.data_dir in evt.path or (not evt.path.endswith("py") and not evt.path.endswith("json")) or + "Test" in evt.path or time.time() - self.last_chaged < 1 ): return False # Ignore *.pyc changes and no reload within 1 sec time.sleep(0.1) # Wait for lock release + logging.debug("Changed: %s, reloading source." % evt.path) self.callback() self.last_chaged = time.time()