diff options
Diffstat (limited to 'bin/install_megadrivers.py')
-rw-r--r-- | bin/install_megadrivers.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/install_megadrivers.py b/bin/install_megadrivers.py index f751c8329c4..ca543e5ce30 100644 --- a/bin/install_megadrivers.py +++ b/bin/install_megadrivers.py @@ -35,7 +35,11 @@ def main(): args = parser.parse_args() if os.path.isabs(args.libdir): - to = os.path.join(os.environ.get('DESTDIR', ''), args.libdir) + destdir = os.environ.get('DESTDIR') + if destdir: + to = os.path.join(destdir, args.libdir[1:]) + else: + to = args.libdir else: to = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], args.libdir) |