From a95be83ed0022614982719b04fb3297d6555ba5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Mon, 25 Sep 2023 10:23:12 -0400 Subject: [PATCH] Replace shutil.move-s by shutil.copytree --- jupyter_remote_desktop_proxy/install.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jupyter_remote_desktop_proxy/install.py b/jupyter_remote_desktop_proxy/install.py index aa19b890..aebf460b 100644 --- a/jupyter_remote_desktop_proxy/install.py +++ b/jupyter_remote_desktop_proxy/install.py @@ -73,9 +73,11 @@ def install_tigervnc(prefix, plat, tigervnc_version): with tarfile.open(tigervnc_archive_path, "r") as tar_ref: tar_ref.extractall(prefix) - shutil.move(f"{prefix}/tigervnc-{tigervnc_version}.{plat}/usr/bin", prefix) - shutil.move(f"{prefix}/tigervnc-{tigervnc_version}.{plat}/usr/lib64", prefix) - shutil.move(f"{prefix}/tigervnc-{tigervnc_version}.{plat}/usr/share", prefix) + shutil.copytree( + src=f"{prefix}/tigervnc-{tigervnc_version}.{plat}/usr", + dst=prefix, + dirs_exist_ok=True, + ) print(f"Installed tigervnc {tigervnc_version}") shutil.rmtree(f"{prefix}/tigervnc-{tigervnc_version}.{plat}")