iparaco commited on
Commit
1346e76
·
verified ·
1 Parent(s): bdeb4ea

LPU_Desktop.cmd.before_root_fix_20261115_104730.bak

Browse files
LPU_Desktop.cmd.before_root_fix_20261115_104730.bak DELETED
@@ -1,27 +0,0 @@
1
- @echo off
2
- REM LPU AI Accelerator V7.1.1 — NATIVE DESKTOP LAUNCHER (no browser)
3
- REM Fixes the "Electron/Chromium warning" issue: this launcher calls
4
- REM python.exe EXPLICITLY, so the broken .py file association on the
5
- REM machine (an Electron-based editor had taken over .py) is bypassed.
6
- REM Double-clickable from Explorer, works from any PowerShell/CMD cwd.
7
-
8
- setlocal
9
- set "LPU_ROOT=%~dp0.."
10
- cd /d "%LPU_ROOT%"
11
-
12
- REM python precedence: project venv -> Ipara.co venv -> py launcher
13
- set "PY="
14
- if exist "%LPU_ROOT%\.venv\Scripts\python.exe" (
15
- set "PY=%LPU_ROOT%\.venv\Scripts\python.exe"
16
- ) else if exist "C:\ipara\Ipara.co\Scripts\python.exe" (
17
- set "PY=C:\ipara\Ipara.co\Scripts\python.exe"
18
- ) else if exist "C:\Ipara.co\Scripts\python.exe" (
19
- set "PY=C:\Ipara.co\Scripts\python.exe"
20
- )
21
-
22
- if defined PY (
23
- "%PY%" run_lpu.py --desktop %*
24
- ) else (
25
- py -3 run_lpu.py --desktop %* 2>nul || python run_lpu.py --desktop %*
26
- )
27
- exit /b %ERRORLEVEL%