module
lbsPathThis module contains path utility methods.
Functions
- def abspath(path: str, relative_to: typing.Optional[str] = None) -> typing.Optional[str]
- Return an absolute path.
Function documentation
def lbaf. Utils. lbsPath. abspath(path: str,
relative_to: typing.Optional[str] = None) -> typing.Optional[str]
Return an absolute path.
This function provides an additional option than os.path.abspath by enabling to express a relative path from another base path than the current working directory.
:param path: the input path. Can be absolute or relative. :param relative_to: the base path, defaults to None (None = the current working directory) :returns: an absolute path