def from_pyfile(self, filename: str) -> None:
globals_ = {}  <EOL>locals_ = {}  <EOL>with open(filename, "<STR_LIT:rb>") as f:<EOL><INDENT>exec(compile(f.read(), filename, '<STR_LIT>'), globals_, locals_)<EOL><DEDENT>for key, value in locals_.items():<EOL><INDENT>if (key.isupper() and not isinstance(value, types.ModuleType)):<EOL><INDENT>self._setattr(key, value)<EOL><DEDENT><DEDENT>logger.info("<STR_LIT>", filename)<EOL>
Load values from a Python file.