aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/msubprojects.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-09-16 14:05:44 -0400
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-09-18 03:01:15 +0000
commit17f07a53d09e9418cf73958905f724c8f31b5f8c (patch)
treef95af4f0fa584cc552b6e2e8dc3ca20dab1a098e /mesonbuild/msubprojects.py
parentda72e6284e15864160d25275906682e4e7354bcb (diff)
downloadmeson-17f07a53d09e9418cf73958905f724c8f31b5f8c.zip
meson-17f07a53d09e9418cf73958905f724c8f31b5f8c.tar.gz
meson-17f07a53d09e9418cf73958905f724c8f31b5f8c.tar.bz2
msubprojects: Fix unit tests on Windows
Diffstat (limited to 'mesonbuild/msubprojects.py')
-rwxr-xr-xmesonbuild/msubprojects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/msubprojects.py b/mesonbuild/msubprojects.py
index aa7a682..df0d796 100755
--- a/mesonbuild/msubprojects.py
+++ b/mesonbuild/msubprojects.py
@@ -1,5 +1,6 @@
import os, subprocess
import argparse
+from pathlib import Path
from . import mlog
from .mesonlib import quiet_git, verbose_git, GitException, Popen_safe, MesonException
@@ -338,7 +339,7 @@ def run(options):
for wrap in wraps:
if types and wrap.type not in types:
continue
- dirname = os.path.join(subprojects_dir, wrap.directory)
+ dirname = Path(subprojects_dir, wrap.directory).as_posix()
if not options.subprojects_func(wrap, dirname, options):
failures.append(wrap.name)
if failures: