Skip to content

Commit

Permalink
move path to a function
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmelville-gds committed May 4, 2023
1 parent 14e1fe3 commit 89517a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudformation_docs/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def generate(create_readme, files):
else:
raise Exception("{}: not a valid file extension".format(extension))
template = json.loads(j)
result = core.generate(template, ".".join(f.name.split(".")[0:-1]), baseTemplatePath)
result = core.generate(template, ".".join(f.name.split(".")[0:-1]), baseTemplatePath(f))
if create_readme:
with open(os.path.join(os.path.dirname(f.name), 'README2.md'), 'w') as readme:
readme.write(result)
Expand Down

0 comments on commit 89517a6

Please sign in to comment.