mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-10-05 09:21:02 +00:00
17 lines
323 B
Python
17 lines
323 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from backend.app.core.path_conf import AvatarPath
|
|
|
|
|
|
def cut_path(path: str = AvatarPath, split_point: str = 'app') -> list:
|
|
"""
|
|
切割路径
|
|
|
|
:param path:
|
|
:param split_point:
|
|
:return:
|
|
"""
|
|
after_path = path.split(split_point)
|
|
return after_path
|