Fix import sys should not appear in pipeline component auto detected packages

This commit is contained in:
allegroai 2023-09-12 00:51:25 +03:00
parent 96b89d76b8
commit d131ff2a45

View File

@ -284,6 +284,11 @@ def is_std_or_local_lib(name):
False if installed package
str if local library
"""
# check if one of the builtin modules first
if name in sys.builtin_module_names:
return True
exist = True
if six.PY2:
import imp # noqa