- Call python script with python executable (fix for windows)

This commit is contained in:
Christophe Dumez
2007-12-12 17:15:13 +00:00
parent cc39504a61
commit 6c11fd5a0d
2 changed files with 4 additions and 3 deletions

View File

@@ -250,8 +250,9 @@ void engineSelectDlg::setRowColor(int row, QString color){
bool engineSelectDlg::checkInstalled(QString plugin_name) const {
QProcess nova;
QStringList params;
params << misc::qBittorrentPath()+"search_engine"+QDir::separator()+"nova2.py";
params << "--supported_engines";
nova.start(misc::qBittorrentPath()+"search_engine"+QDir::separator()+"nova2.py", params, QIODevice::ReadOnly);
nova.start("python", params, QIODevice::ReadOnly);
nova.waitForStarted();
nova.waitForFinished();
QByteArray result = nova.readAll();