mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 01:49:23 +08:00
增加chang_dir
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user