mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
bump version to v0.10.5
This commit is contained in:
parent
21ab389d0f
commit
dac3a1d857
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user