Fix Pop-Location usage
This commit is contained in:
parent
7332806678
commit
f37463570d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue