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,8 +1,11 @@
# 最新动态
2024/01/09
* 完善utils.py兼容Python2.7(感谢雨欣提供补丁)
2024/01/08
* 完善编译脚本,修改打印信息(感谢智明提供补丁)
2024/01/05
* 编译脚本scons 版本不一致判断函数漏改问题(感谢高源提供补丁)。
* 修复popup菜单关闭过程中弹出模态对话框触发断言的问题(感谢雨欣提供补丁)

View File

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