htmd.home module#
- htmd.home.home(dataDir=None, libDir=False, shareDir=False)#
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'