From 709c80d7fbfa583e9785a097a4a4820d2d7fef5a Mon Sep 17 00:00:00 2001 From: liumingye <8676207+liumingye@users.noreply.github.com> Date: Sat, 31 Aug 2024 17:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0python=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-pyservice-mac.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package-pyservice-mac.sh b/package-pyservice-mac.sh index 85de024..46c5e06 100644 --- a/package-pyservice-mac.sh +++ b/package-pyservice-mac.sh @@ -1,4 +1,5 @@ -export SITE_PACKAGES_PATH=$(pwd)/aiocr-env/lib/python3.8/site-packages +export PY_VERSION=`python3 -V 2>&1|awk '{print $2}'|awk -F '.' '{print $1"."$2}'` +export SITE_PACKAGES_PATH=$(pwd)/aiocr-env/lib/python${PY_VERSION}/site-packages export CODE_PATH=$(pwd)/py-service