Skip to content

Commit

Permalink
Teach make_dyn_docs how to make missing directories
Browse files Browse the repository at this point in the history
  • Loading branch information
lowell80 committed Mar 1, 2019
1 parent d7c31cc commit b621982
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion make_dyn_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ def make_subcommands_table(csv_path):


if __name__ == '__main__':
docs_dir = lambda filename: os.path.join(project_dir, "docs", "source", "dyn", filename)
dyn = os.path.join(project_dir, "docs", "source", "dyn")
if not os.path.isdir(dyn):
os.makedirs(dyn)
docs_dir = lambda filename: os.path.join(dyn, filename)
changes = 0

changes += make_cli_docs(docs_dir("cli.rst"))
Expand Down

0 comments on commit b621982

Please sign in to comment.