15 lines
625 B
Batchfile
15 lines
625 B
Batchfile
@echo off
|
|
chcp 936 >nul
|
|
title testdata - 测试数据生成器
|
|
cd /d "%~dp0"
|
|
rem 依次找: 本机venv python(与启动造价审核bat同款) 绿包自带python 系统python
|
|
set PY=
|
|
if exist "C://Users//MZ//.workbuddy//binaries//python//envs//default//Scripts//python.exe" set PY=C://Users//MZ//.workbuddy//binaries//python//envs//default//Scripts//python.exe
|
|
if "%PY%"=="" for /d %%D in ("%~dp0..\PricingReview*") do if exist "%%~fD\python\python.exe" set PY=%%~fD\python\python.exe
|
|
if "%PY%"=="" set PY=python
|
|
echo 使用 Python: %PY%
|
|
echo 控制台地址: http://127.0.0.1:8412
|
|
rem 端口被占时 panel_server 会提示并直接开浏览器
|
|
"%PY%" panel_server.py
|
|
pause
|