File tree Expand file tree Collapse file tree 5 files changed +9
-4
lines changed Expand file tree Collapse file tree 5 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ English | [简体中文](README_zh-CN.md)
5959
6060## What's New
6161
62- v0.10.4 was released on 2024-4-23 .
62+ v0.10.5 was released on 2024-9-11 .
6363
6464Highlights:
6565
Original file line number Diff line number Diff line change 5959
6060## 最近进展
6161
62- 最新版本 v0.10.4 在 2024.4.23 发布。
62+ 最新版本 v0.10.5 在 2024.9.11 发布。
6363
6464版本亮点:
6565
Original file line number Diff line number Diff line change 11# Changelog of v0.x
22
3+ ## v0.10.5 (11/9/2024)
4+
5+ - Fix ` _is_builtin_module ` . by [ @HAOCHENYE ] ( https://github.com/HAOCHENYE ) in https://github.com/open-mmlab/mmengine/pull/1571
6+
37## v0.10.4 (23/4/2024)
48
59### New Features & Enhancements
Original file line number Diff line number Diff line change 1212from mmengine .utils import check_file_exist
1313
1414PYTHON_ROOT_DIR = osp .dirname (osp .dirname (sys .executable ))
15+ SYSTEM_PYTHON_PREFIX = '/usr/lib/python'
1516
1617MODULE2PACKAGE = {
1718 'mmcls' : 'mmcls' ,
@@ -177,7 +178,7 @@ def _is_builtin_module(module_name: str) -> bool:
177178 origin_path = osp .abspath (origin_path )
178179 if ('site-package' in origin_path or 'dist-package' in origin_path
179180 or not origin_path .startswith (
180- (PYTHON_ROOT_DIR , '/usr/lib/python' ))):
181+ (PYTHON_ROOT_DIR , SYSTEM_PYTHON_PREFIX ))):
181182 return False
182183 else :
183184 return True
Original file line number Diff line number Diff line change 11# Copyright (c) OpenMMLab. All rights reserved.
22
3- __version__ = '0.10.4 '
3+ __version__ = '0.10.5 '
44
55
66def parse_version_info (version_str ):
You can’t perform that action at this time.
0 commit comments