Skip to content

Commit

Permalink
Fix bug with read-only templates (#142)
Browse files Browse the repository at this point in the history
Co-authored-by: Denis Blanchette <[email protected]>
  • Loading branch information
tobiasBora and dblanchette committed Jul 12, 2022
1 parent 123f504 commit 6abe999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json_schema_for_humans/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _copy_additional_file_to_target(
return

try:
shutil.copy(str(source_file_path), str(target_directory / file_to_copy))
shutil.copyfile(str(source_file_path), str(target_directory / file_to_copy))
except shutil.SameFileError:
print(f"Not copying {file_to_copy} to {target_directory.absolute()}, file already exists")

Expand Down

0 comments on commit 6abe999

Please sign in to comment.