From f37463570ddda8bbaf7800bce88d0311674ad634 Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Thu, 9 Jun 2022 15:19:56 -0400 Subject: [PATCH] Fix Pop-Location usage --- bootstrap.ps1 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bootstrap.ps1 b/bootstrap.ps1 index fbf9093..b581a7e 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -1,6 +1,8 @@ $run_path = Get-Location -Push-Location C:/SWTools +$swtools = C:/SWTools + +Push-Location $swtools if (Get-Command "./python/python.exe" -ErrorAction SilentlyContinue) { echo "Python already installed." @@ -17,7 +19,9 @@ if (Get-Command "./python/python.exe" -ErrorAction SilentlyContinue) { mkdir python Push-Location python tar -xf ../python.zip - Pop-Location python + Pop-Location } -./python/python.exe $run_path/main.py $run_path +Pop-Location + +$swtools/python/python.exe main.py $run_path