htmd.home module#
- htmd.home.home(dataDir: str | None = None, libDir: bool = False, shareDir: bool = False) str#
Return the pathname of the HTMD root directory (or a subdirectory).
- Parameters:
- Returns:
dir – The requested directory path.
- Return type:
- Raises:
FileNotFoundError – If
libDiris True and the lib directory does not exist, or ifshareDiris True and the share directory does not exist.
Examples
>>> from htmd.home import home >>> home() '.../htmd' >>> home(dataDir="dhfr") '.../data/dhfr' >>> os.path.join(home(dataDir="dhfr"),"dhfr.pdb") '.../data/dhfr/dhfr.pdb'