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

---
 scripts_launch/TEST_udp_get.bat |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/scripts_launch/TEST_udp_get.bat b/scripts_launch/TEST_udp_get.bat
index f5f8eb1..4dfba31 100644
--- a/scripts_launch/TEST_udp_get.bat
+++ b/scripts_launch/TEST_udp_get.bat
@@ -2,18 +2,10 @@
 
 @REM change to the filepath
 cd %~dp0
+@REM add vitrual env python to the path
+path "%~dp0/../.env/Scripts/";%path%
+
 cd ..
-
-set aerialpython=%cd%/.env/python.exe
-set envsetting=%cd%/env/SettingEnv.bat
-
-@REM Setting the env
-if not exist %aerialpython% (
-    call %envsetting% 
-)
-cd %~dp0
-cd ..
-
 echo change to path: %cd%
 
 set MICROWAVEhost=192.168.2.65
@@ -29,5 +21,5 @@
 set folder=./%SAVEfolder%/%SUBfolder%/
 echo the udp data will be saved in folder %folder%
 @REM ---------------Usage: udp_get.py [MICROWAVEhost] [PACKETthreshold] [DEVICEname] [SAVEfolder]
-%aerialpython% ./scripts/udp_get.py %MICROWAVEhost% %PACKETthreshold% %DEVICEname% %SAVEfolder% %SUBfolder%
+python ./scripts/udp_get.py %MICROWAVEhost% %PACKETthreshold% %DEVICEname% %SAVEfolder% %SUBfolder%
 pause
\ No newline at end of file

--
Gitblit v1.9.1