Skip to content

Commit

Permalink
Keep trying to fix this Python stuff
Browse files Browse the repository at this point in the history
Whatever is failing downstream, all we can do
is play "whack-a-mole" until we get lucky
and hit a fix.

Signed-off-by: Ralph Castain <[email protected]>
(cherry picked from commit ff99400)
  • Loading branch information
rhc54 committed Sep 15, 2023
1 parent d45206a commit 10c0c7b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/docs/show-help-files/build-dummy-ini-files.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,12 @@
# this script runnable in as many environments as possible.
try:
os.makedirs(full_outdir, exists_ok=True)
# Write the output file
with open(outfile, 'w') as fp:
for section in sections:
# Use Python 2-friendly formatting for environments where
# we don't have Python 3 (!).
fp.write("""[{}]
This help section is empty because PRRTE was built without Sphinx.\n""".format(section))
except Exception:
# cannot create the directory, so just leave it alone
# we did our best, they'll just get a runtime error
return

# Write the output file
with open(outfile, 'w') as fp:
for section in sections:
# Use Python 2-friendly formatting for environments where
# we don't have Python 3 (!).
fp.write("""[{}]
This help section is empty because PRRTE was built without Sphinx.\n""".format(section))
pass

0 comments on commit 10c0c7b

Please sign in to comment.