Skip to content

Commit

Permalink
Fix FlexBE#14: Update state definition only for python files but any …
Browse files Browse the repository at this point in the history
…event type
  • Loading branch information
pschillinger committed Apr 10, 2018
1 parent 1327ce3 commit d2f3de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/io_packageparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, ".");
Expand Down

0 comments on commit d2f3de7

Please sign in to comment.