8 lines
208 B
Python
8 lines
208 B
Python
from pathlib import Path
|
|
|
|
ROOT_DIR = Path(__file__).resolve().parent
|
|
|
|
|
|
def get_absolute_path(path_from_root: str) -> str:
|
|
absolute_path = ROOT_DIR / path_from_root
|
|
return str(absolute_path.resolve())
|