From 71af073f2c76f04e155aa798168fdcea9b694c09 Mon Sep 17 00:00:00 2001 From: Joaquin Matres Date: Thu, 26 Mar 2020 10:22:35 -0700 Subject: [PATCH] remove symlink before creating a new one --- install_generic_tech.py | 1 + 1 file changed, 1 insertion(+) diff --git a/install_generic_tech.py b/install_generic_tech.py index 837f751f3..1efbbc4e3 100644 --- a/install_generic_tech.py +++ b/install_generic_tech.py @@ -21,6 +21,7 @@ def install_generic_tech(src, dest): dest_folder = dest.parent dest_folder.mkdir(exist_ok=True, parents=True) + os.remove(dest) os.symlink(src, dest) print(f"generic layermap installed to {dest}")