- Call python scripts using python executable (fix for windows)

This commit is contained in:
Christophe Dumez 2007-12-12 17:14:15 +00:00
parent 56965d444a
commit b2f9394d6e
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();