-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_startVSCode.cmd
53 lines (41 loc) · 1.14 KB
/
_startVSCode.cmd
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
set PYTHON_BIN="C:\Python"
set FILE_GET_PIP="%PYTHON_BIN%\get-pip.py"
goto main
REM --------------------------------------------
:warteBisGetPipExistiert
:WAIT_LOOP
IF NOT EXIST %FILE_GET_PIP% (
TIMEOUT /T 1 /NOBREAK > NUL
echo waiting...
GOTO WAIT_LOOP
)
goto :eof
REM --------------------------------------------
:pipNeuInstallieren
curl https://bootstrap.pypa.io/get-pip.py -o %FILE_GET_PIP%
call :warteBisGetPipExistiert
call "%PYTHON_BIN%\python.exe" %FILE_GET_PIP%
goto :eof
REM --------------------------------------------
:pipUpgraden
pip install --upgrade pip
goto :eof
REM --------------------------------------------
:requirementsInstallieren
pip install --upgrade --upgrade-strategy eager -r requirements.txt
goto :eof
REM --------------------------------------------
:main
if not exist "%PYTHON_BIN%\python.exe" (
echo "Missing Python installed at %PYTHON_BIN%
pause
goto :eof
)
if not exist %FILE_GET_PIP% (
call :pipNeuInstallieren
)
call :pipUpgraden
call :requirementsInstallieren
set PYTHONPATH=.\Moduldateien;.\benoetigte_Dateien
code .