-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
37 lines (31 loc) · 740 Bytes
/
Copy pathrun.bat
File metadata and controls
37 lines (31 loc) · 740 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
34
35
36
37
@echo off
setlocal
cd /d "%~dp0"
if exist "Plotty\Plotty.exe" (
start "" "Plotty\Plotty.exe"
exit /b 0
)
if exist "dist\Plotty\Plotty.exe" (
start "" "dist\Plotty\Plotty.exe"
exit /b 0
)
if not exist "venv\Scripts\python.exe" (
where py >nul 2>nul
if %errorlevel%==0 (
py -3 -m venv venv
) else (
where python >nul 2>nul
if %errorlevel%==0 (
python -m venv venv
) else (
echo Python was not found.
echo Install Python, or download a bundled Plotty release that includes Plotty.exe.
pause
exit /b 1
)
)
)
call "venv\Scripts\activate.bat"
python -m pip install -r requirements.txt
python app.py
endlocal