@property
    def installed(self):
        try:
            if self._PETSc is None:
                PETSc = _import_petsc()
                del sys.modules['petsc4py']
                self._PETSc = PETSc
            return True
        except __HOLE__:
            self._PETSc = None
            return False
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/mpiwrap.py/PETSc.installed