aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-01-26 22:05:38 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-01-26 22:08:09 -0500
commitd73e81c77b842d386ebdfe4fc984fea364ca51b8 (patch)
treed97114ab04f68cc87e77cccd52fa4987f54be8c8 /mesonbuild/modules
parentdd4e7120243edb2030c6558cf657a504bef7e9b7 (diff)
downloadmeson-d73e81c77b842d386ebdfe4fc984fea364ca51b8.zip
meson-d73e81c77b842d386ebdfe4fc984fea364ca51b8.tar.gz
meson-d73e81c77b842d386ebdfe4fc984fea364ca51b8.tar.bz2
Popen_safe and wrappers can accept os.PathLike for cwd
Do not require users to convert it to a string first. This is a waste of time and effort for exactly the same results.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/unstable_external_project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/unstable_external_project.py b/mesonbuild/modules/unstable_external_project.py
index c43fc12..4e3d6db 100644
--- a/mesonbuild/modules/unstable_external_project.py
+++ b/mesonbuild/modules/unstable_external_project.py
@@ -205,7 +205,7 @@ class ExternalProject(NewExtensionModule):
output.flush()
else:
mlog.log(m)
- p, *_ = Popen_safe(command, cwd=str(workdir), env=self.run_env,
+ p, *_ = Popen_safe(command, cwd=workdir, env=self.run_env,
stderr=subprocess.STDOUT,
stdout=output)
if p.returncode != 0: