Source code for xsdata.utils.package

import functools
from pathlib import Path


[docs]@functools.lru_cache(maxsize=50) def package_path(package: str) -> Path: """Join the current working path with the package name.""" return Path.cwd().joinpath(package.replace(".", "/")).parent
[docs]@functools.lru_cache(maxsize=50) def module_path(module: str) -> Path: """Join the current working path with the given module name.""" return Path.cwd().joinpath(module.replace(".", "/"))