-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwindows_setup.bat
More file actions
33 lines (28 loc) · 847 Bytes
/
windows_setup.bat
File metadata and controls
33 lines (28 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
echo Currently in %~dp0
echo.
echo This script will require administrator permissions to set an environment variable so that the main script can run.
echo.
pause
SETX BRAINART %~dp0
echo Environment Variable "BRAINART" set to %~dp0
pause
:: Just in case make sure that we stay in the right directory if we are in administrator mode
cd %~dp0
:: Check if .esp directory exists
if not exist ".esp" (
echo Creating .esp directory...
python -m venv .esp
)
:: Activate the virtual environment
call .esp\Scripts\activate.bat
:: Install required packages
echo Installing required packages...
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
echo Packages installed.
pause
:: Deactivate the virtual environment
echo Deactivating virtual environment. Click enter to exit.
pause
deactivate