-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_tui.bat
More file actions
37 lines (32 loc) · 845 Bytes
/
run_tui.bat
File metadata and controls
37 lines (32 loc) · 845 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 EnableDelayedExpansion
REM Try to find python executable
where python >nul 2>nul
if %errorlevel% equ 0 (
set PYTHON_CMD=python
goto :FOUND
)
where python3 >nul 2>nul
if %errorlevel% equ 0 (
set PYTHON_CMD=python3
goto :FOUND
)
where py >nul 2>nul
if %errorlevel% equ 0 (
set PYTHON_CMD=py
goto :FOUND
)
echo.
echo [ERROR] Python was not found!
echo.
echo Troubleshooting steps:
echo 1. Ensure Python is installed from python.org or Microsoft Store.
echo 2. If installed from Microsoft Store, search for "Manage App Execution Aliases" in Windows Settings
echo and ensure "python.exe" and "python3.exe" are turned ON.
echo 3. If installed from python.org, ensure "Add Python to PATH" was checked during installation.
echo.
pause
exit /b 1
:FOUND
echo Found Python: !PYTHON_CMD!
!PYTHON_CMD! md.py