-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathopen.bat
22 lines (19 loc) · 1.07 KB
/
open.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@REM This script opens the EcoAssist program and allows for shortcut creation and execution from within Timelapse.
@REM Timelapse can also open it by executing the python command directly, but it is still here so that it mimics
@REM the old method. In the old method we needed this batch script to perform some conda operations before opening
@REM the python script. With the Jan 2025 install update that is not neccesary anymore. But this script is still
@REM here so that Timelapse can run the same command as before and users don't have to update their Timelapse
@REM version when using a new EcoAssist version.
@REM Peter van Lunteren, 25 Jan 2025 (latest edit)
@REM set echo settings
echo off
@setlocal EnableDelayedExpansion
@REM set paths
set ECOASSIST_GUI="%homedrive%%homepath%\EcoAssist_files\EcoAssist\EcoAssist_GUI.py"
set PYTHON_EXE="%homedrive%%homepath%\EcoAssist_files\envs\env-base\python.exe"
@REM run script in either timelapse or normal mode
if "%1" == "timelapse" (
%PYTHON_EXE% %ECOASSIST_GUI% --timelapse-path=%2
) else (
%PYTHON_EXE% %ECOASSIST_GUI%
)