mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Fix python 2.7 support
This commit is contained in:
parent
2682754aaf
commit
1374543b93
@ -325,8 +325,8 @@ def is_std_or_local_lib(name):
|
|||||||
'bin/' in mpath and mpath.endswith('.py')):
|
'bin/' in mpath and mpath.endswith('.py')):
|
||||||
exist = False
|
exist = False
|
||||||
elif ((sys.prefix not in mpath) and
|
elif ((sys.prefix not in mpath) and
|
||||||
(sys.base_exec_prefix not in mpath) and
|
(six.PY2 or (sys.base_exec_prefix not in mpath)) and
|
||||||
(sys.base_prefix not in mpath)):
|
(six.PY2 or (sys.base_prefix not in mpath))):
|
||||||
exist = mpath
|
exist = mpath
|
||||||
|
|
||||||
return exist
|
return exist
|
||||||
|
Loading…
Reference in New Issue
Block a user