def normpath(path: Union[(str, BasePathLike)]) -> str:
    '\n    Normalize a path in order to provide a more consistent output.\n\n    Currently it generates a relative path but in the future we may want to\n    make this user configurable.\n    '
    relpath = os.path.relpath(str(path))
    abspath = os.path.abspath(str(path))
    if (abspath in relpath):
        return abspath
    return relpath
Normalize a path in order to provide a more consistent output.

Currently it generates a relative path but in the future we may want to
make this user configurable.
def normpath(path: Union[(str, BasePathLike)]) -> str:
    '\n    Normalize a path in order to provide a more consistent output.\n\n    Currently it generates a relative path but in the future we may want to\n    make this user configurable.\n    '
    relpath = os.path.relpath(str(path))
    abspath = os.path.abspath(str(path))
    if (abspath in relpath):
        return abspath
    return relpath