bump version to v0.10.5

This commit is contained in:
HAOCHENYE 2024-09-20 07:37:29 +00:00
parent 21ab389d0f
commit dac3a1d857

View File

@ -12,6 +12,7 @@ from mmengine.fileio import load
from mmengine.utils import check_file_exist
PYTHON_ROOT_DIR = osp.dirname(osp.dirname(sys.executable))
SYSTEM_PYTHON_PREFIX = '/usr/lib/python'
MODULE2PACKAGE = {
'mmcls': 'mmcls',
@ -177,7 +178,7 @@ def _is_builtin_module(module_name: str) -> bool:
origin_path = osp.abspath(origin_path)
if ('site-package' in origin_path or 'dist-package' in origin_path
or not origin_path.startswith(
(PYTHON_ROOT_DIR, '/usr/lib/python'))):
(PYTHON_ROOT_DIR, SYSTEM_PYTHON_PREFIX))):
return False
else:
return True