Commit 4c260516 authored by Kagami Sascha Rosylight's avatar Kagami Sascha Rosylight
Browse files

Bug 1761633 - Silence the possible error from Get-Command r=mhentges DONTBUILD

parent c2f75198
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
$mypath = $MyInvocation.MyCommand.Path
$machpath = $mypath.substring(0, $mypath.length - 4)

if (Get-Command py) {
if (Get-Command py -ErrorAction SilentlyContinue) {
  $python_executable = "py"
} else {
  $python_executable = "python"