From 27b7bb48e1abbb10a276fe478803e65fd146f597 Mon Sep 17 00:00:00 2001 From: Raymond Zhao <7199958+rzhao271@users.noreply.github.com> Date: Fri, 6 Oct 2023 13:48:56 -0700 Subject: [PATCH] Get path --- .github/workflows/visual-studio.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/visual-studio.yml b/.github/workflows/visual-studio.yml index 50a7b5c758..b9d42c25f0 100644 --- a/.github/workflows/visual-studio.yml +++ b/.github/workflows/visual-studio.yml @@ -30,5 +30,5 @@ jobs: - name: Run Node tests shell: pwsh run: | - $pythonLocation = (Get-Command python).Source + $pythonLocation = Split-Path -Parent (Get-Command python).Source npm run test --python="${pythonLocation}\\python.exe" --msvs-version="${{ matrix.msvs-version }}"