Description: Fix setting of PYTHONHOME.  With SETTINGS_PYTHON_PATH being
  /usr/bin/python3, PYTHONHOME is computed as /usr/bin, but should be /usr
  (if necessary at all).
Author: Joachim Reichel <reichel@debian.org>
Index: cppcheck/gui/checkthread.cpp
===================================================================
--- cppcheck.orig/gui/checkthread.cpp
+++ cppcheck/gui/checkthread.cpp
@@ -310,7 +310,8 @@ void CheckThread::runAddonsAndTools(cons
             QProcess process;
             QProcessEnvironment env = process.processEnvironment();
             if (!env.contains("PYTHONHOME") && !python.startsWith("python")) {
-                env.insert("PYTHONHOME", QFileInfo(python).canonicalPath());
+                QString home = QDir(QFileInfo(python).canonicalPath() + QDir::separator() + "..").canonicalPath();
+                env.insert("PYTHONHOME", home);
                 process.setProcessEnvironment(env);
             }
             process.start(python, args);
