mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Win32: Added Python 2.7 support (and fix Python 2.5 support)
This commit is contained in:
parent
847a6c75d7
commit
1537c70988
1 changed files with 5 additions and 1 deletions
|
@ -908,12 +908,16 @@ public:
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(QFile::exists("C:/Python27/python.exe")) {
|
||||||
|
reg_python.setValue("2.7/InstallPath/Default", "C:\\Python27");
|
||||||
|
return "C:\\Python27";
|
||||||
|
}
|
||||||
if(QFile::exists("C:/Python26/python.exe")) {
|
if(QFile::exists("C:/Python26/python.exe")) {
|
||||||
reg_python.setValue("2.6/InstallPath/Default", "C:\\Python26");
|
reg_python.setValue("2.6/InstallPath/Default", "C:\\Python26");
|
||||||
return "C:\\Python26";
|
return "C:\\Python26";
|
||||||
}
|
}
|
||||||
if(QFile::exists("C:/Python25/python.exe")) {
|
if(QFile::exists("C:/Python25/python.exe")) {
|
||||||
reg_python.setValue("2.5/InstallPath/Default", "C:\\Python26");
|
reg_python.setValue("2.5/InstallPath/Default", "C:\\Python25");
|
||||||
return "C:\\Python25";
|
return "C:\\Python25";
|
||||||
}
|
}
|
||||||
return QString::null;
|
return QString::null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue