Files
DCU_ECAT_Master/ecat_web.bat
T

9 lines
296 B
Batchfile
Raw Normal View History

@echo off
rem DCU EtherCAT master web console (serves src\web\ecat.html + pysoem API)
rem 入口在项目根, 代码在 src\; cd 进 src 是为了让 py 之间的 import 正常解析。
chcp 65001 >nul
set PYTHONUTF8=1
cd /d "%~dp0src"
"%~dp0venv\Scripts\python.exe" ecat_server.py
pause