FilePath

class ase2sprkkr.common.file_utils.FilePath(path, base_directory=None)[source]

A path displayed relative to its base directory but resolved absolutely.

str(path) is intended for concise user-facing output, while filesystem consumers such as open(path), Path(path) and os.path receive the absolute path through __fspath__().

Class hierarchy

Inheritance diagram of ase2sprkkr.common.file_utils.FilePath


Constructor

__init__(path, base_directory=None)[source]
_abc_impl = <_abc._abc_data object>