Source code for pydmt.utils.importlib
"""
importlib.y
"""
from importlib.util import find_spec
[docs]
def module_exists(module_name):
""" return if a module exists or not """
spec = find_spec(module_name)
return spec is not None
"""
importlib.y
"""
from importlib.util import find_spec
[docs]
def module_exists(module_name):
""" return if a module exists or not """
spec = find_spec(module_name)
return spec is not None