Make Local Agent desktop dashboard single-instance

This commit is contained in:
A R R R Associates
2026-09-04 14:31:10 +05:30
parent 7bc97be1b1
commit c418dcb45a
6 changed files with 32 additions and 23 deletions
@@ -1,3 +1,16 @@
@echo off
setlocal
cd /d "%~dp0"
wscript.exe "%~dp0Open ERP Local Agent Dashboard.vbs"
if not exist ".venv\Scripts\pythonw.exe" (
echo ERROR: ERP Local Agent Python environment was not found.
exit /b 1
)
if not exist "ERPAgentDashboard.pyw" (
echo ERROR: ERPAgentDashboard.pyw was not found.
exit /b 1
)
start "" ".venv\Scripts\pythonw.exe" "ERPAgentDashboard.pyw"
exit /b 0