diff --git a/src/plugins/webassembly/webassemblyemsdk.cpp b/src/plugins/webassembly/webassemblyemsdk.cpp index 1fd109514f0..dc78de158d0 100644 --- a/src/plugins/webassembly/webassemblyemsdk.cpp +++ b/src/plugins/webassembly/webassemblyemsdk.cpp @@ -85,6 +85,11 @@ static void parseEmSdkEnvOutputAndAddToEnv(const QString &output, Environment &e continue; } } + + // QTCREATORBUG-26199: Wrapper scripts (e.g. emcc.bat) of older emsdks might not find python + const QString emsdkPython = env.value("EMSDK_PYTHON"); + if (!emsdkPython.isEmpty()) + env.appendOrSetPath(FilePath::fromUserInput(emsdkPython).parentDir().toUserOutput()); } bool WebAssemblyEmSdk::isValid(const FilePath &sdkRoot)