Skip to content

Commit

Permalink
Replace shutil.move-s by shutil.copytree
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Sep 25, 2023
1 parent dd16c50 commit a95be83
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jupyter_remote_desktop_proxy/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit a95be83

Please sign in to comment.