scripts/install: Also strip '\' from the end of a path

Fixes installation of subdirs on Windows
pull/417/head
Nirbheek Chauhan 9 years ago
parent 0143c32c7c
commit 598997bdb5
  1. 2
      mesonbuild/scripts/meson_install.py

@ -43,7 +43,7 @@ def do_install(datafilename):
def install_subdirs(data):
for (src_dir, inst_dir, dst_dir) in data.install_subdirs:
if src_dir.endswith('/'):
if src_dir.endswith('/') or src_dir.endswith('\\'):
src_dir = src_dir[:-1]
src_prefix = os.path.join(src_dir, inst_dir)
print('Installing subdir %s to %s.' % (src_prefix, dst_dir))

Loading…
Cancel
Save