We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4268d43 commit a275dfeCopy full SHA for a275dfe
1 file changed
download.ps1
@@ -6,17 +6,15 @@
6
# https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe
7
# https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe.asc
8
9
-if ($env:PYARCH -eq "amd64") {
+if ($env:PYARCH -eq "64") {
10
$filename = "python-${env:PYVERSION}-amd64.exe"
11
- $arch = "64"
12
} else {
13
$filename = "python-${env:PYVERSION}.exe"
14
- $arch = "32"
15
}
16
17
$url = "https://www.python.org/ftp/python/${env:PYVERSION}/${filename}"
18
$target = $PSScriptRoot + "\" + $filename
19
-$targetdir = $PSScriptRoot + "\Python-${env:PYVERSION}-${arch}"
+$targetdir = $PSScriptRoot + "\Python-${env:PYVERSION}-${env:PYARCH}"
20
$logfile = $PSScriptRoot + "\install.log"
21
22
Write-Output "URL: $url"
0 commit comments