From 89e16e8b8ceb472e19fbb7f7bba9c2817acd7403 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 18 Oct 2022 13:55:39 +0200 Subject: [PATCH] Python: map building directory to pyside project device Change-Id: If261483864a5e4a13554fdefbf3d9076b7d1f687 Reviewed-by: Christian Stenger --- src/plugins/python/pysidebuildconfiguration.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/python/pysidebuildconfiguration.cpp b/src/plugins/python/pysidebuildconfiguration.cpp index 13367f55d9e..6faa194b0bf 100644 --- a/src/plugins/python/pysidebuildconfiguration.cpp +++ b/src/plugins/python/pysidebuildconfiguration.cpp @@ -62,7 +62,9 @@ PySideBuildStep::PySideBuildStep(BuildStepList *bsl, Id id) m_pysideProject->setFilePath(pySideProjectPath); setCommandLineProvider([this] { return CommandLine(m_pysideProject->filePath(), {"build"}); }); - setWorkingDirectoryProvider([this] { return target()->project()->projectDirectory(); }); + setWorkingDirectoryProvider([this] { + return target()->project()->projectDirectory().onDevice(m_pysideProject->filePath()); + }); setEnvironmentModifier([this](Environment &env) { env.prependOrSetPath(m_pysideProject->filePath().parentDir()); });