Skip to content

Commit

Permalink
Update create_output_supplemental_data.py
Browse files Browse the repository at this point in the history
Rename variable, for clarity
  • Loading branch information
lurch authored Mar 13, 2023
1 parent c3156c6 commit bce0405
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/create_output_supplemental_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ def get_release_version(doxyfile_path):
version = version_search.group(2)
return version

def write_new_data_file(output_dir, data_obj):
f = open(output_dir, 'w')
def write_new_data_file(output_json_file, data_obj):
f = open(output_json_file, 'w')
f.write(json.dumps(data_obj))
f.close()
return

if __name__ == "__main__":
# read the doxygen config file
doxyfile_path = sys.argv[1]
# output the new data file
output_dir = sys.argv[2]
output_json_file = sys.argv[2]
version = get_release_version(doxyfile_path)
data_obj = {"pico_sdk_release": version}
write_new_data_file(output_dir, data_obj)
write_new_data_file(output_json_file, data_obj)

0 comments on commit bce0405

Please sign in to comment.