Fix Pop-Location usage

This commit is contained in:
Michael Pfaff 2022-06-09 15:19:56 -04:00
parent 7332806678
commit f37463570d
Signed by: michael
GPG Key ID: CF402C4A012AA9D4
1 changed files with 7 additions and 3 deletions

View File

@ -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