diff options
-rwxr-xr-x | meson_install.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meson_install.py b/meson_install.py index 18b0a20..c353949 100755 --- a/meson_install.py +++ b/meson_install.py @@ -165,7 +165,12 @@ def install_targets(d): printed_symlink_error = False for alias in aliases: try: - os.symlink(fname, os.path.join(outdir, alias)) + symlinkfilename = os.path.join(outdir, alias) + try: + os.unlink(symlinkfilename) + except FileNotFoundError: + pass + os.symlink(fname, symlinkfilename) except NotImplementedError: if not printed_symlink_error: print("Symlink creation does not work on this platform.") |