bin/install_megadrivers.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git i/bin/install_megadrivers.py w/bin/install_megadrivers.py index f751c8329c4..c4760f578ac 100644 --- i/bin/install_megadrivers.py +++ w/bin/install_megadrivers.py @@ -25,6 +25,7 @@ import argparse import os import shutil +import sys def main(): @@ -35,7 +36,11 @@ def main(): args = parser.parse_args() if os.path.isabs(args.libdir): - to = os.path.join(os.environ.get('DESTDIR', ''), args.libdir) + if sys.platform.startswith('win32'): + drive, tail = os.path.splitdrive(args.libdir) + else: + drive, tail = '/', args.libdir + to = os.path.join(os.environ.get('DESTDIR', drive), tail[1:]) else: to = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], args.libdir)