Commit debbc801 authored by xiabo's avatar xiabo
Browse files

mmcv获取路径修改

parent 07a03043
Pipeline #207 failed with stages
in 0 seconds
......@@ -35,8 +35,8 @@ def get_sha(pytorch_root: Union[str, Path]) -> str:
def get_version_add(sha: Optional[str] = None) -> str:
mmcv_root = Path(__file__).parent.parent
add_version_path = mmcv_root / "mmcv" / "version.py"
mmcv_root = os.path.dirname(os.path.abspath(__file__))
add_version_path = os.path.join(os.path.join(mmcv_root, "mmcv"), "version.py")
if sha != 'Unknown':
if sha is None:
sha = get_sha(mmcv_root)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment