From a9b2b553caed438eebd847ca733165f1d9219692 Mon Sep 17 00:00:00 2001 From: bn Date: Tue, 12 Mar 2024 18:18:16 +0100 Subject: [PATCH] Do not load all importlib module. --- eastereig/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eastereig/__init__.py b/eastereig/__init__.py index 3461923..58d8003 100644 --- a/eastereig/__init__.py +++ b/eastereig/__init__.py @@ -31,7 +31,7 @@ .. image::../../figures/packages.svg """ -import importlib as _importlib +from importlib.util import find_spec as _find_spec import numpy as _np import os @@ -39,8 +39,8 @@ __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