Skip to content
Snippets Groups Projects
Commit a861a113 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Don't fail when parameters dir contains python files

parent f546b04e
Branches
No related tags found
No related merge requests found
......@@ -88,7 +88,11 @@ function loadRawParameters(
rawParameter = {}
}
for (const childFilename of fs.readdirSync(nodePath)) {
if (childFilename[0] === "." || childFilename === "index.yaml") {
if (
childFilename[0] === "." ||
childFilename === "index.yaml" ||
childFilename.endsWith(".py")
) {
continue
}
const childRelativeSplitPath = [...relativeSplitPath, childFilename]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment