summaryrefslogtreecommitdiff
path: root/x.ps1
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2023-10-23 13:25:48 +0800
committerSean Cross <sean@xobs.io>2023-10-23 13:25:48 +0800
commit1f9f041c35106c8c0c05f1a0bad6c2c790451f95 (patch)
treef272c4aedd41ac5fbb67bb69dc9da3be60cb4a4c /x.ps1
parent62fae2305e5f3a959bd6ad6c20608c118e93648a (diff)
x.ps1: remove the check for Python from Windows Store
When installing Python from the Windows Store, a copy of `python.exe` is installed inder the Microsoft directory in the user's local AppData directory. Currently, `x.ps1` checks for this file, because by default running `python.exe` opens a link to the Microsoft Store rather than running Python. Once the user installs Python, however, this contains a valid interpreter. Unfortuantely, `x.ps1` can't tell the difference between a legitimate Python install and the stub. Remove the check, as it makes it impossible to use the official version from Microsoft once it has been installed. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'x.ps1')
-rwxr-xr-xx.ps15
1 files changed, 0 insertions, 5 deletions
diff --git a/x.ps1 b/x.ps1
index 55f99901645..eae1a2cb399 100755
--- a/x.ps1
+++ b/x.ps1
@@ -17,11 +17,6 @@ foreach ($arg in $args) {
function Get-Application($app) {
$cmd = Get-Command $app -ErrorAction SilentlyContinue -CommandType Application | Select-Object -First 1
- if ($cmd.source -match '.*AppData\\Local\\Microsoft\\WindowsApps\\.*exe') {
- # Windows for some reason puts a `python3.exe` executable in PATH that just opens the windows store.
- # Ignore it.
- return $false
- }
return $cmd
}