From 65d1e46541fc1a11cbdfd27d51d00a6a341ad2ab Mon Sep 17 00:00:00 2001
From: wu_xinjun <bent20140204@outlook.com>
Date: 星期二, 21 六月 2022 20:43:04 +0800
Subject: [PATCH] optimize for env setting via venv

---
 src/microwave/demo/AutoSendUDPtest.bat |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/microwave/demo/AutoSendUDPtest.bat b/src/microwave/demo/AutoSendUDPtest.bat
index 426321c..13fd77e 100644
--- a/src/microwave/demo/AutoSendUDPtest.bat
+++ b/src/microwave/demo/AutoSendUDPtest.bat
@@ -2,19 +2,12 @@
 
 @REM change to the filepath
 cd %~dp0
-echo change to path: %cd%
-
-set aerialpython=%cd%/../../../.env/python.exe
-set envsetting=%cd%/../../../env/SettingEnv.bat
-
-@REM Setting the env
-if not exist %aerialpython% (
-    call %envsetting% 
-)
+@REM add vitrual env python to the path
+path "%~dp0/../../../../.env/Scripts/";%path%
 
 echo All data saved in '%cd%/demoUDPData/' folder will be sent to 127.0.0.1:9911
 
-%aerialpython% udp_test_send.py
+python udp_test_send.py
 
 echo =========== ALL SEND DONE ================
 

--
Gitblit v1.9.1