Initial commit

This commit is contained in:
Michael Pfaff 2022-06-09 13:49:43 -04:00
commit 4820e0ef92
Signed by: michael
GPG Key ID: CF402C4A012AA9D4
2 changed files with 27 additions and 0 deletions

22
bootstrap.bat Normal file
View File

@ -0,0 +1,22 @@
@echo on
for /f %%i in ('cd') do set _RunPath=%%i
pushd /SWTools
IF EXIST ./python/python.exe (
echo "Python already installed."
) ELSE (
IF EXIST ./python.zip (
) ELSE (
curl "https://www.python.org/ftp/python/3.10.5/python-3.10.5-embed-amd64.zip" --output ./python.zip
)
IF EXIST ./python (
del ./python
)
tar -xf ./python.zip
)
./python/python.exe main.py _RunPath

5
main.py Normal file
View File

@ -0,0 +1,5 @@
import sys
run_path = sys.argv[1]
println(f"Run from {run_path}.")