From b55ca57d380480ffa770bcc79454fd826a6f6d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8D=E8=B6=85?= Date: Wed, 22 Jan 2025 11:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0chang=5Fdir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_version.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update_version.py b/update_version.py index 5a19edc..506f643 100644 --- a/update_version.py +++ b/update_version.py @@ -3,6 +3,11 @@ import os import glob import shutil +# 获取当前脚本所在的目录 +script_dir = os.path.dirname(os.path.abspath(__file__)) + +# 切换到当前脚本所在的目录 +os.chdir(script_dir) # 移除 gradio_webrtc 包 subprocess.run(['pip', 'uninstall', '-y', 'gradio_webrtc'])