OneLagent / lagent /utils /package.py
3v324v23's picture
Add files
4535c91
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