summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schwan <m.schwan@phytec.de>2020-05-20 10:08:50 +0200
committerMartin Schwan <m.schwan@phytec.de>2020-05-20 10:08:50 +0200
commitfba9a39303b5c43c7be1eb3876c7e6c34bc3e87e (patch)
treebf9ff260b902a8a4788ec818bb939e18918d2902
parent73e828fed265948ee84e823269c810d1bca193c3 (diff)
downloadaidemo-customvision-fba9a39303b5c43c7be1eb3876c7e6c34bc3e87e.tar.bz2
aidemo-customvision-fba9a39303b5c43c7be1eb3876c7e6c34bc3e87e.zip
Ignore modules when parsing deployment file without create-options.json0.5.1
Signed-off-by: Martin Schwan <m.schwan@phytec.de>
-rw-r--r--parse-deployment.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse-deployment.py b/parse-deployment.py
index 337a247..036efa6 100644
--- a/parse-deployment.py
+++ b/parse-deployment.py
@@ -18,6 +18,9 @@ def main(args):
templateContent = templateContent.replace(envKey, env[envKey])
for module in os.listdir('modules'):
+ if not os.path.isfile('modules/' + module + '/create-options.json'):
+ continue
+
with open('modules/' + module + '/create-options.json', 'r') \
as createOptionsFile:
createOptions = createOptionsFile.read().replace('"', '\\"')