forked from Cephla-Lab/image-stitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_gui.bat
More file actions
35 lines (26 loc) · 790 Bytes
/
run_gui.bat
File metadata and controls
35 lines (26 loc) · 790 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
@echo off
setlocal enabledelayedexpansion
:: Get the directory where this script is located
set "script_dir=%~dp0"
cd /d "%script_dir%"
echo Setting up conda...
:: Get conda base directory
for /f "tokens=*" %%i in ('conda info --base 2^>nul') do set "conda_base=%%i"
if not defined conda_base (
echo Error: Conda not found. Please run setup_windows.bat first.
pause
exit /b 1
)
:: Activate conda
call "%conda_base%\Scripts\activate.bat"
echo Activating the image-stitcher conda environment...
call conda activate image-stitcher
if %errorlevel% neq 0 (
echo Error: Failed to activate image-stitcher environment.
echo Please run setup_windows.bat first.
pause
exit /b 1
)
echo Running the image stitcher gui...
python -m image_stitcher.stitcher_gui
pause