From 278e9343d9d25684f1f0cc7f9c417956b8b3bcd8 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Mon, 20 May 2024 14:13:32 +0800 Subject: [PATCH] python: Tweak manifest (#5850) --- bucket/python.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bucket/python.json b/bucket/python.json index ce7149cb2f..8fb99e3d3c 100644 --- a/bucket/python.json +++ b/bucket/python.json @@ -55,8 +55,8 @@ "}", "Remove-Item \"$dir\\_tmp\", \"$dir\\setup.exe\" -Force -Recurse", "if ($global) {", - " $pathext = (Get-EnvVar -Name PATHEXT -Global:$true) -replace ';.PYW?', ''", - " Set-EnvVar -Name PATHEXT -Value \"$pathext;.PY;.PYW\" -Global:$true", + " $pathext = (Get-EnvVar -Name PATHEXT -Global) -replace ';.PYW?', ''", + " Set-EnvVar -Name PATHEXT -Value \"$pathext;.PY;.PYW\" -Global", "}" ] }, @@ -67,8 +67,8 @@ "uninstaller": { "script": [ "if ($global) {", - " $pathext = (Get-EnvVar -Name PATHEXT -Global:$true) -replace ';.PYW?', ''", - " Set-EnvVar -Name PATHEXT -Value \"$pathext\" -Global:$true", + " $pathext = (Get-EnvVar -Name PATHEXT -Global) -replace ';.PYW?', ''", + " Set-EnvVar -Name PATHEXT -Value \"$pathext\" -Global", "}" ] },