modm_data.utils.path
1# Copyright 2022, Niklas Hauser 2# SPDX-License-Identifier: MPL-2.0 3 4from pathlib import Path 5 6 7def root_path(path) -> Path: 8 return Path(__file__).parents[2] / path 9 10 11def ext_path(path) -> Path: 12 return root_path(Path("ext") / path) 13 14 15def cache_path(path) -> Path: 16 return ext_path(Path("cache") / path) 17 18 19def patch_path(path) -> Path: 20 return root_path(Path("patches") / path)
def
root_path(path) -> pathlib.Path:
def
ext_path(path) -> pathlib.Path:
def
cache_path(path) -> pathlib.Path:
def
patch_path(path) -> pathlib.Path: