Skip to content

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 <61387986+alkatar21@users.noreply.github.com>
  • Loading branch information
insspb and alkatar21 committed Jun 8, 2022
1 parent 8eb562b commit 1e821d2
Showing 1 changed file with 1 addition and 1 deletion.
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.