Files
pricing_review/release/testdata/启动testdata.bat

15 lines
639 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@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