-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrun.cmd
More file actions
25 lines (22 loc) · 865 Bytes
/
run.cmd
File metadata and controls
25 lines (22 loc) · 865 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
@echo off
rem This script helps users get a Python environment installed that can run this
rem application. Experienced users might choose an already existing Python
rem environment to run the application.
echo Checking if conda present...
call conda --version
if errorlevel 1 (
echo.
echo To use this launcher, you need to have the conda executable on your path.
echo If you want to do this, install Miniconda from https://docs.conda.io/en/latest/miniconda.html
start https://docs.conda.io/en/latest/miniconda.html
exit /b %errorlevel%
)
echo Checking if python environment present...
call conda activate pyzephyr
if errorlevel 1 (
echo.
echo Creating conda environment on first-time use...
call conda env create -n pyzephyr -f conda-environment.yml
)
echo Launching application...
call conda activate pyzephyr && python main.py %*