1 Star 0 Fork 26

laranlan/Wine 运行器

forked from gfdgd xi/Wine 运行器 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
GetProgramVersion.py 284 Bytes
一键复制 编辑 原始数据 按行查看 历史
gfdgd xi 提交于 2023-11-11 23:12 . ace包支持
#!/usr/bin/env python3
# 读取程序版本号
import os
import json
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
try:
with open(f"{programPath}/information.json") as file:
print(json.loads(file.read())["Version"])
except:
print("1.0.0")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/ChaoYouAi/deep-wine-runner.git
git@gitee.com:ChaoYouAi/deep-wine-runner.git
ChaoYouAi
deep-wine-runner
Wine 运行器
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385