Fixed how to access complex nested key-value pairs.

This commit is contained in:
Patrick Lehmann
2021-12-24 13:04:31 +01:00
parent fa10ed076c
commit d7c765ba79

View File

@@ -91,8 +91,8 @@ jobs:
with pyProjectFile.open("rb") as file: with pyProjectFile.open("rb") as file:
pyProjectSettings = tomli_load(file) pyProjectSettings = tomli_load(file)
htmlDirectory = pyProjectSettings["tool.coverage.html"]["directory"] htmlDirectory = pyProjectSettings["tool"]["coverage"]["html"]["directory"]
xmlFile = pyProjectSettings["tool.coverage.xml"]["output"] xmlFile = pyProjectSettings["tool"]["coverage"]["xml"]["output"]
else: else:
print(f"File '{pyProjectFile}' not found and no ' .coveragerc' file specified.") print(f"File '{pyProjectFile}' not found and no ' .coveragerc' file specified.")