Skip to content

Commit

Permalink
Do not load all importlib module.
Browse files Browse the repository at this point in the history
  • Loading branch information
nennigb committed Mar 12, 2024
1 parent 4e34de1 commit a9b2b55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eastereig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@
.. image::../../figures/packages.svg
"""
import importlib as _importlib
from importlib.util import find_spec as _find_spec
import numpy as _np
import os

# usefull also to pdoc
__all__ = ['OP', 'Eig', 'EP', 'Loci', 'gopts']

# check if petsc4py and slepc4py are installed
if _importlib.util.find_spec('petsc4py'):
if _importlib.util.find_spec('slepc4py'):
if _find_spec('petsc4py'):
if _find_spec('slepc4py'):
_petscHere = True
else:
_petscHere = False
Expand Down

0 comments on commit a9b2b55

Please sign in to comment.