mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Fixup previous commits on python search.
This commit is contained in:
parent
d6af4683bb
commit
8b99e29dc0
2 changed files with 4 additions and 4 deletions
|
@ -1765,8 +1765,8 @@ QString Preferences::getPythonPath()
|
|||
// Fallback: Detect python from default locations
|
||||
const QStringList dirs = QDir("C:/").entryList(QStringList("Python*"), QDir::Dirs, QDir::Name | QDir::Reversed);
|
||||
foreach (const QString &dir, dirs) {
|
||||
const QString path("C:/" + dir + "/python.exe");
|
||||
if (QFile::exists(path))
|
||||
const QString path("C:/" + dir + "/");
|
||||
if (QFile::exists(path + "python.exe"))
|
||||
return path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue