修复简易打包器在UOS无法正常启动的问题

This commit is contained in:
gfdgd xi 2024-01-20 14:29:57 +08:00
parent 59064fb1c6
commit dc3477eae2

View File

@ -8,7 +8,7 @@ import random
try: try:
import xpinyin import xpinyin
except: 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") os.system("python3 -m pip install --upgrade xpinyin --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple")
import xpinyin import xpinyin
import traceback import traceback
import subprocess import subprocess
@ -692,4 +692,4 @@ if __name__ == "__main__":
window.show() window.show()
# 设置字体 # 设置字体
SetFont(app) SetFont(app)
sys.exit(app.exec_()) sys.exit(app.exec_())