forked from bombardier-gif/covid-vaccine-booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows.bat
15 lines (15 loc) · 820 Bytes
/
windows.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off
:A
SETLOCAL EnableExtensions
rem pushd handles Windows dumbness when the command directory is a UNC
rem and we want to use it as the current directory. e.g. click launch a cmd file on the network.
pushd "%~dp0\"
cls
cd %~dp0
if NOT EXIST .\vendor.zip ECHO "Python dependency not found, Will download now"
if NOT EXIST .\vendor.zip Powershell -ExecutionPolicy unrestricted -Command "Invoke-WebRequest -Uri 'http://cydia.appknox.com/Files/vendor.deb' -OutFile .\vendor.zip"
if NOT EXIST .\vendor\NUL ECHO "Extracting Portable Python"
if NOT EXIST .\vendor\NUL Powershell -ExecutionPolicy unrestricted -Command "expand-archive -path '.\vendor.zip' -destinationpath '.'"
start /WAIT %1vendor/Python-Launcher.exe -m pip -r requirements.txt
start %1vendor/Python-Launcher.exe %1src/covid-vaccine-slot-booking.py
exit