Skip to content

Commit

Permalink
fix(riot): do not copy symlink target (#129)
Browse files Browse the repository at this point in the history
By default, shutil.copytree follows and copy symlinks targets.

Which is exactly not what standard Unix command does.

Well done, Python.
  • Loading branch information
Julien Danjou authored Mar 22, 2021
1 parent 4abc285 commit d4fca88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riot/riot.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def run(
venv_path,
)
try:
shutil.copytree(base_venv_path, venv_path)
shutil.copytree(base_venv_path, venv_path, symlinks=True)
except FileNotFoundError:
logger.info("Base virtualenv '%s' does not exist", venv_path)
continue
Expand Down

0 comments on commit d4fca88

Please sign in to comment.