improve build scripts

This commit is contained in:
lixianjing 2024-01-09 16:52:55 +08:00
parent 31b1323109
commit 6efe9f8213
2 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,8 @@
# 最新动态
2024/01/09
* 完善utils.py兼容Python2.7(感谢雨欣提供补丁)
2024/01/08
* 完善编译脚本,修改打印信息(感谢智明提供补丁)

View File

@ -1,4 +1,5 @@
def strtobool(value: str) -> bool:
def strtobool(value):
if(isinstance(value, str)):
value = value.lower()
if value in ("y", "yes", "on", "1", "true", "t"):
return True