getattr_ignorecase

psi4.driver.p4util.getattr_ignorecase(module, attr)[source]

Extract attribute attr from module if attr is available in any possible lettercase permutation.

Parameters:
  • module (str) – Object on which to seek attr.

  • attr (str) – Name of attribute with uncertain case.

Returns:

attribute – Module attribute returned if available. None if not.

Return type:

Any