From d7ff49c4c7b20014f54e887e4419a854ee100272 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Fri, 18 Nov 2016 20:02:03 +0100 Subject: [PATCH] Reload source on .json changes --- src/Debug/DebugReloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Debug/DebugReloader.py b/src/Debug/DebugReloader.py index 1c643f6e..02dfffcb 100644 --- a/src/Debug/DebugReloader.py +++ b/src/Debug/DebugReloader.py @@ -39,7 +39,7 @@ class DebugReloader: def changed(self, evt): if ( not evt.path or "%s/" % config.data_dir in evt.path or - not evt.path.endswith("py") or + (not evt.path.endswith("py") and not evt.path.endswith("json")) or time.time() - self.last_chaged < 1 ): return False # Ignore *.pyc changes and no reload within 1 sec