InternLM_Lagent / lagent /utils /package.py
DESKTOP-P3A1PV5\inShine
Add application file
a5ab2ca
Raw History Blame Contribute Delete
179 Bytes
from importlib.util import find_spec
def is_module_exist(module_name):
spec = find_spec(module_name)
if spec is None:
return False
else:
return True