fix python version detection

This commit is contained in:
Ondrej Samohel 2021-05-26 17:47:29 +02:00 committed by Ondrej Samohel
parent 00a0c3931e
commit 7ae8af5cd1
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -81,7 +81,7 @@ print('{0}.{1}'.format(sys.version_info[0], sys.version_info[1]))
Write-Host "FAILED Version [ $p ] is old and unsupported" -ForegroundColor red
Set-Location -Path $current_dir
Exit-WithCode 1
} elseif (($matches[1] = 3) -or ($matches[2] -gt 7)) {
} elseif (($matches[1] -eq 3) -and ($matches[2] -gt 7)) {
Write-Host "WARNING Version [ $p ] is unsupported, use at your own risk." -ForegroundColor yellow
Write-Host "*** " -NoNewline -ForegroundColor yellow
Write-Host "OpenPype supports only Python 3.7" -ForegroundColor white