Skip to content

Commit

Permalink
fix: Use shutil.copytree instead of cp
Browse files Browse the repository at this point in the history
Windows environments may not have cp
  • Loading branch information
blairconrad committed Oct 25, 2024
1 parent c0dbb46 commit 6037911
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions project/scripts/make
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ def clean() -> None:

def vscode() -> None:
"""Configure VSCode to work on this project."""
Path(".vscode").mkdir(parents=True, exist_ok=True)
shell("cp -v config/vscode/* .vscode")
shutil.copytree("config/vscode", ".vscode", dirs_exist_ok=True)


def main() -> int:
Expand Down

0 comments on commit 6037911

Please sign in to comment.