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_subdire…
Browse files Browse the repository at this point in the history
…ctories.py)

Co-authored-by: alkatar21 <[email protected]>
  • Loading branch information
insspb and alkatar21 authored Jun 8, 2022
1 parent 1e821d2 commit 0fe509c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def cloned_cookiecutter_path(user_config_data, template):
subdir_template_path = os.path.join(cloned_template_path, 'my-dir')
if not os.path.exists(subdir_template_path):
os.mkdir(subdir_template_path)
Path(subdir_template_path, 'cookiecutter.json').open('w') # creates file
Path(subdir_template_path, 'cookiecutter.json').touch() # creates file

return subdir_template_path

Expand Down

0 comments on commit 0fe509c

Please sign in to comment.