Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Use touch instead of open('w') (test_determine_repo_dir_finds_existin…
Browse files Browse the repository at this point in the history
…g_cookiecutter.py)

Co-authored-by: alkatar21 <[email protected]>
  • Loading branch information
insspb and alkatar21 authored Jun 8, 2022
1 parent 8eb562b commit 1e821d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def cloned_cookiecutter_path(user_config_data, template):
cloned_template_path = os.path.join(cookiecutters_dir, template)
os.mkdir(cloned_template_path)

Path(cloned_template_path, "cookiecutter.json").open('w') # creates file
Path(cloned_template_path, "cookiecutter.json").touch() # creates file

return cloned_template_path

Expand Down

0 comments on commit 1e821d2

Please sign in to comment.