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 <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2022-07-07 08:40:05 +02:00
parent 78958d5740
commit b47b6cddc7

View File

@@ -87,6 +87,9 @@ PySideBuildStep::PySideBuildStep(BuildStepList *bsl, Id id)
setCommandLineProvider([this] { return CommandLine(m_pysideProject->filePath(), {"build"}); }); setCommandLineProvider([this] { return CommandLine(m_pysideProject->filePath(), {"build"}); });
setWorkingDirectoryProvider([this] { return target()->project()->projectDirectory(); }); setWorkingDirectoryProvider([this] { return target()->project()->projectDirectory(); });
setEnvironmentModifier([this](Environment &env) {
env.prependOrSetPath(m_pysideProject->filePath().parentDir());
});
} }
void PySideBuildStep::updatePySideProjectPath(const Utils::FilePath &pySideProjectPath) void PySideBuildStep::updatePySideProjectPath(const Utils::FilePath &pySideProjectPath)