liumaolin commited on
Commit
b319d19
·
1 Parent(s): 00c731a

打包Python时默认激活Python虚拟环境

Browse files
Files changed (1) hide show
  1. scripts/build-python.sh +3 -0
scripts/build-python.sh CHANGED
@@ -4,6 +4,9 @@
4
  # 脚本出错时立即退出
5
  set -e
6
 
 
 
 
7
  # --- 配置 ---
8
  # 应用名称
9
  APP_NAME="voice_dialogue"
 
4
  # 脚本出错时立即退出
5
  set -e
6
 
7
+ # 激活Python虚拟环境
8
+ source .venv/bin/activate
9
+
10
  # --- 配置 ---
11
  # 应用名称
12
  APP_NAME="voice_dialogue"