Detect Python interpreter on Windows (the search engine is now working!)

This commit is contained in:
Christophe Dumez
2010-05-30 14:46:47 +00:00
parent 11f79432b5
commit 4eb8be372e
5 changed files with 84 additions and 6 deletions

View File

@@ -916,6 +916,18 @@ public:
settings.setValue(QString::fromUtf8("Preferences/Connection/ResolvePeerHostNames"), resolve);
}
#ifdef Q_WS_WIN
static void setPythonPath(QString path) {
QSettings settings("qBittorrent", "qBittorrent");
settings.setValue(QString::fromUtf8("Preferences/Win32/PythonPath"), path);
}
static QString getPythonPath() {
QSettings settings("qBittorrent", "qBittorrent");
return settings.value(QString::fromUtf8("Preferences/Win32/PythonPath"), "").toString();
}
#endif
};
#endif // PREFERENCES_H