Browse Source

Update Python URLs

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
f26a5c3581
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/utils/foreignapps.cpp
  2. 2
      src/gui/mainwindow.cpp

2
src/base/utils/foreignapps.cpp

@ -251,7 +251,7 @@ PythonInfo Utils::ForeignApps::pythonInfo()
if (!pyInfo.isValid()) { if (!pyInfo.isValid()) {
#if defined(Q_OS_UNIX) #if defined(Q_OS_UNIX)
// On Unix-Like Systems python2 and python3 should always exist // On Unix-Like Systems python2 and python3 should always exist
// https://legacy.python.org/dev/peps/pep-0394/ // https://www.python.org/dev/peps/pep-0394/
if (testPythonInstallation("python3", pyInfo)) if (testPythonInstallation("python3", pyInfo))
return pyInfo; return pyInfo;
if (testPythonInstallation("python2", pyInfo)) if (testPythonInstallation("python2", pyInfo))

2
src/gui/mainwindow.cpp

@ -2049,7 +2049,7 @@ void MainWindow::installPython()
setCursor(QCursor(Qt::WaitCursor)); setCursor(QCursor(Qt::WaitCursor));
// Download python // Download python
const QString installerURL = ((QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA) const QString installerURL = ((QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA)
? "https://www.python.org/ftp/python/3.5.2/python-3.5.2.exe" ? "https://www.python.org/ftp/python/3.6.6/python-3.6.6.exe"
: "https://www.python.org/ftp/python/3.4.4/python-3.4.4.msi"); : "https://www.python.org/ftp/python/3.4.4/python-3.4.4.msi");
Net::DownloadHandler *handler = Net::DownloadManager::instance()->download( Net::DownloadHandler *handler = Net::DownloadManager::instance()->download(
Net::DownloadRequest(installerURL).saveToFile(true)); Net::DownloadRequest(installerURL).saveToFile(true));

Loading…
Cancel
Save