From 46773e75a8d546d8b101d2938eff0c4021f93734 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 16 Nov 2014 18:48:28 +0200 Subject: [PATCH] Create symlinks properly. Fixes #19. --- meson_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson_install.py b/meson_install.py index 0d6db8215..179b053bb 100755 --- a/meson_install.py +++ b/meson_install.py @@ -190,7 +190,7 @@ def install_targets(d): os.unlink(symlinkfilename) except FileNotFoundError: pass - os.symlink(fname, symlinkfilename) + os.symlink(os.path.split(fname)[-1], symlinkfilename) except NotImplementedError: if not printed_symlink_error: print("Symlink creation does not work on this platform.")