summaryrefslogtreecommitdiff
path: root/bin/docs-create-example-outputs.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2020-07-04 08:30:25 -0600
committerMats Wichmann <mats@linux.com>2020-07-04 08:30:25 -0600
commitc16d44ca42227fe1033e73daf26b07888444fee8 (patch)
treed15f0fe604e34c49031e469899ed9c2e8a5b90d2 /bin/docs-create-example-outputs.py
parentd1184b576d1304395bed12a25312c77ef6554b03 (diff)
downloadscons-git-c16d44ca42227fe1033e73daf26b07888444fee8.tar.gz
Update doc gen to fail more definitively [skip appveyor]
Now the scons "product" build (including generating and building docs) is done in CI, it's useful to fail more distinctly on xml problems. Modify scripts to do that, and do a bit of reformatting along the way. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'bin/docs-create-example-outputs.py')
-rw-r--r--bin/docs-create-example-outputs.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/docs-create-example-outputs.py b/bin/docs-create-example-outputs.py
index 012443533..e5d40ce4c 100644
--- a/bin/docs-create-example-outputs.py
+++ b/bin/docs-create-example-outputs.py
@@ -9,10 +9,13 @@ import SConsExamples
if __name__ == "__main__":
print("Checking whether all example names are unique...")
- if SConsExamples.exampleNamesAreUnique(os.path.join('doc','user')):
+ if SConsExamples.exampleNamesAreUnique(os.path.join('doc', 'user')):
print("OK")
else:
- print("Not all example names and suffixes are unique! Please correct the errors listed above and try again.")
+ print(
+ "Not all example names and suffixes are unique! "
+ "Please correct the errors listed above and try again."
+ )
sys.exit(1)
- SConsExamples.createAllExampleOutputs(os.path.join('doc','user'))
+ SConsExamples.createAllExampleOutputs(os.path.join('doc', 'user'))