1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fix for make webdocs

This commit is contained in:
jborean93 2017-09-21 11:09:55 +10:00 committed by Brian Coca
parent 72bdf7aa7e
commit 0e22afef52

View file

@ -123,7 +123,7 @@ def write_data(text, output_dir, outputname, module=None):
outputname = outputname % module outputname = outputname % module
if not os.path.exists(output_dir): if not os.path.exists(output_dir):
os.mkdir(output_dir) os.makedirs(output_dir)
fname = os.path.join(output_dir, outputname) fname = os.path.join(output_dir, outputname)
fname = fname.replace(".py", "") fname = fname.replace(".py", "")
with open(fname, 'wb') as f: with open(fname, 'wb') as f: