Description: Set configuration directory and python version
Author: Joachim Reichel <reichel@debian.org>

Index: cppcheck-2.0/gui/main.cpp
===================================================================
--- cppcheck-2.0.orig/gui/main.cpp
+++ cppcheck-2.0/gui/main.cpp
@@ -62,6 +62,12 @@ int main(int argc, char *argv[])
 
     QSettings* settings = new QSettings("Cppcheck", "Cppcheck-GUI", &app);
 
+    // Set some default settings
+    if( settings->value("DATADIR", QString()).toString().isEmpty())
+        settings->setValue("DATADIR", FILESDIR);
+    if( settings->value(SETTINGS_PYTHON_PATH, QString()).toString().isEmpty())
+        settings->setValue(SETTINGS_PYTHON_PATH, QString("/usr/bin/python3"));
+
     // Set data dir..
     foreach (const QString arg, app.arguments()) {
         if (arg.startsWith("--data-dir=")) {
Index: cppcheck-2.0/htmlreport/cppcheck-htmlreport
===================================================================
--- cppcheck-2.0.orig/htmlreport/cppcheck-htmlreport
+++ cppcheck-2.0/htmlreport/cppcheck-htmlreport
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import unicode_literals
 
Index: cppcheck-2.0/lib/settings.cpp
===================================================================
--- cppcheck-2.0.orig/lib/settings.cpp
+++ cppcheck-2.0/lib/settings.cpp
@@ -30,7 +30,7 @@ const char Settings::SafeChecks::XmlExte
 
 Settings::Settings()
     : mEnabled(0),
-      addonPython("python"),
+      addonPython("python3"),
       bugHunting(false),
       checkAllConfigurations(true),
       checkConfiguration(false),
