mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-06 15:05:13 +00:00
添加环境检查功能,支持自动安装缺失的Python包;更新命令行参数以跳过环境检查;优化代码格式。
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user