添加环境检查功能,支持自动安装缺失的Python包;更新命令行参数以跳过环境检查;优化代码格式。

This commit is contained in:
Xuwznln
2025-08-01 22:14:41 +08:00
parent aa84564e51
commit 7b408127d1
3 changed files with 216 additions and 6 deletions

View File

@@ -1,7 +1,8 @@
from unilabos.utils.log import logger
from unilabos.utils.environment_check import check_environment, EnvironmentChecker
# 确保日志配置在导入utils包时自动应用
# 这样任何导入utils包或其子模块的代码都会自动配置好日志
# 导出logger使其可以通过from unilabos.utils import logger直接导入
__all__ = ['logger']
# 导出logger和环境检查工具,使其可以直接导入
__all__ = ["logger", "check_environment", "EnvironmentChecker"]