From d4fca88de73ad5411f8032ab2cc3704c9a2163e1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 22 Mar 2021 15:00:24 +0100 Subject: [PATCH] fix(riot): do not copy symlink target (#129) By default, shutil.copytree follows and copy symlinks targets. Which is exactly not what standard Unix command does. Well done, Python. --- riot/riot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riot/riot.py b/riot/riot.py index 569cd3d..fbe6af2 100644 --- a/riot/riot.py +++ b/riot/riot.py @@ -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