From d2f3de72d16e0d34d8db3486eec7a0f01c440ab9 Mon Sep 17 00:00:00 2001 From: Philipp Schillinger Date: Tue, 10 Apr 2018 19:31:09 +0200 Subject: [PATCH] Fix #14: Update state definition only for python files but any event type --- src/io/io_packageparser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/io_packageparser.js b/src/io/io_packageparser.js index e588b53..760752d 100644 --- a/src/io/io_packageparser.js +++ b/src/io/io_packageparser.js @@ -64,7 +64,7 @@ IO.PackageParser = new (function() { T.logWarn("A state definition source file changed while in read-only mode, ignoring the change for now!"); return; } - if (eventType == 'change') { + if (filename.endsWith(".py")) { var entry = path.join(folder_path, filename); IO.Filesystem.readFile(entry, (content) => { var imports = entry.replace(import_path+"/", "").replace(/.py$/i, "").replace(/[\/]/g, ".");