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/udp2ply.bat | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/scripts_launch/udp2ply.bat b/scripts_launch/udp2ply.bat index d5ce011..316c46c 100644 --- a/scripts_launch/udp2ply.bat +++ b/scripts_launch/udp2ply.bat @@ -2,25 +2,17 @@ @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% @REM please the folder path of the udp files. @REM set UDPfolder=./Manual_Microwave/pod1-2012-12-12-12-12-12/ @REM ---------------Usage: udp2bin.py [UDPfolder] -%aerialpython% ./scripts/udp2bin.py %UDPfolder% +python ./scripts/udp2bin.py %UDPfolder% @REM ---------------Usage: bin2ply.py [BINfolder] -%aerialpython% ./scripts/bin2ply.py %UDPfolder% +python ./scripts/bin2ply.py %UDPfolder% pause \ No newline at end of file -- Gitblit v1.9.1