From b47b6cddc7ea12e709cd917d8b851e01facfeec5 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 7 Jul 2022 08:40:05 +0200 Subject: [PATCH] Python: Prepend pyside6-project path to PATH env variable Otherwise pyside6-project cannot find uic or rcc or might use those tools from another pyside installation. Change-Id: I34eff2fc2627b07a18a705e5d658bd7cf8ce9350 Reviewed-by: Christian Stenger --- src/plugins/python/pysidebuildconfiguration.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/python/pysidebuildconfiguration.cpp b/src/plugins/python/pysidebuildconfiguration.cpp index 058b877f571..2e2540755c0 100644 --- a/src/plugins/python/pysidebuildconfiguration.cpp +++ b/src/plugins/python/pysidebuildconfiguration.cpp @@ -87,6 +87,9 @@ PySideBuildStep::PySideBuildStep(BuildStepList *bsl, Id id) setCommandLineProvider([this] { return CommandLine(m_pysideProject->filePath(), {"build"}); }); setWorkingDirectoryProvider([this] { return target()->project()->projectDirectory(); }); + setEnvironmentModifier([this](Environment &env) { + env.prependOrSetPath(m_pysideProject->filePath().parentDir()); + }); } void PySideBuildStep::updatePySideProjectPath(const Utils::FilePath &pySideProjectPath)