From 4820e0ef9217a75c8221b51fbc5f4d581339dbef Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Thu, 9 Jun 2022 13:49:43 -0400 Subject: [PATCH] Initial commit --- bootstrap.bat | 22 ++++++++++++++++++++++ main.py | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 bootstrap.bat create mode 100644 main.py diff --git a/bootstrap.bat b/bootstrap.bat new file mode 100644 index 0000000..11e5d85 --- /dev/null +++ b/bootstrap.bat @@ -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 diff --git a/main.py b/main.py new file mode 100644 index 0000000..67a7274 --- /dev/null +++ b/main.py @@ -0,0 +1,5 @@ +import sys + +run_path = sys.argv[1] + +println(f"Run from {run_path}.")