mirror of
https://github.com/clearml/clearml
synced 2025-02-12 07:35:08 +00:00
Fix import sys should not appear in pipeline component auto detected packages
This commit is contained in:
parent
96b89d76b8
commit
d131ff2a45
@ -284,6 +284,11 @@ def is_std_or_local_lib(name):
|
|||||||
False if installed package
|
False if installed package
|
||||||
str if local library
|
str if local library
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# check if one of the builtin modules first
|
||||||
|
if name in sys.builtin_module_names:
|
||||||
|
return True
|
||||||
|
|
||||||
exist = True
|
exist = True
|
||||||
if six.PY2:
|
if six.PY2:
|
||||||
import imp # noqa
|
import imp # noqa
|
||||||
|
Loading…
Reference in New Issue
Block a user