aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/runtime_py3/importer.pxi
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2023-12-22 20:30:08 +0100
committerGitHub <noreply@github.com>2023-12-22 20:30:08 +0100
commit6b4f46a6883f21c16eef367106167ea59932515e (patch)
tree5833709b16bba3948f15e88b9038229c5065605b /library/python/runtime_py3/importer.pxi
parenta8b737f2a6df02f6e45ed703246c75f0f4cf7a34 (diff)
downloadydb-6b4f46a6883f21c16eef367106167ea59932515e.tar.gz
Import libs 3 (#679)
Diffstat (limited to 'library/python/runtime_py3/importer.pxi')
-rw-r--r--library/python/runtime_py3/importer.pxi3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/python/runtime_py3/importer.pxi b/library/python/runtime_py3/importer.pxi
index 901c9faa3a..66ecd35167 100644
--- a/library/python/runtime_py3/importer.pxi
+++ b/library/python/runtime_py3/importer.pxi
@@ -221,7 +221,8 @@ class ResourceImporter(object):
def find_spec(self, fullname, path=None, target=None):
# Поддежка переопределения стандартного distutils из пакетом из setuptools
if fullname.startswith("distutils."):
- if path and len(path) > 0 and "/setuptools/_distutils" in path[0]:
+ setuptools_path = f"{path_sep}setuptools{path_sep}_distutils"
+ if path and len(path) > 0 and setuptools_path in path[0]:
import importlib
import importlib.abc