Correctly strip newline (on Windows)

This commit is contained in:
Matthieu Gautier 2024-04-22 16:06:33 +02:00
parent 46e58b763d
commit 703554d556
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def get_build_dir(config) -> Path:
command.append("--use-target-arch-name") command.append("--use-target-arch-name")
return Path( return Path(
subprocess.run(command, cwd=str(HOME), check=True, stdout=subprocess.PIPE) subprocess.run(command, cwd=str(HOME), check=True, stdout=subprocess.PIPE)
.stdout[:-1] .stdout.strip()
.decode("utf8") .decode("utf8")
) )