From de76733f3fb4d6078599f1826846dfa39fa76c13 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 11 Nov 2023 22:24:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AE=80=E6=98=93=E6=89=93?= =?UTF-8?q?=E5=8C=85=E5=99=A8=E6=97=A0=E6=B3=95=E6=89=93=E5=BC=80=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20https://gitee.com/gfdgd-xi/deep-wine-runne?= =?UTF-8?q?r/issues/I85F9M?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deepin-wine-easy-packager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deepin-wine-easy-packager.py b/deepin-wine-easy-packager.py index 4c7085f..a5070fb 100755 --- a/deepin-wine-easy-packager.py +++ b/deepin-wine-easy-packager.py @@ -5,7 +5,11 @@ import json import time import updatekiller import random -import xpinyin +try: + import xpinyin +except: + os.system("python3 -m pip install --upgrade xpinyin --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple --break-system-packages") + import xpinyin import traceback import subprocess import PyQt5.QtGui as QtGui