diff options
| author | AlexSm <[email protected]> | 2023-12-22 20:30:08 +0100 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-22 20:30:08 +0100 | 
| commit | 6b4f46a6883f21c16eef367106167ea59932515e (patch) | |
| tree | 5833709b16bba3948f15e88b9038229c5065605b /library/python | |
| parent | a8b737f2a6df02f6e45ed703246c75f0f4cf7a34 (diff) | |
Import libs 3 (#679)
Diffstat (limited to 'library/python')
| -rw-r--r-- | library/python/runtime_py3/importer.pxi | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/library/python/runtime_py3/importer.pxi b/library/python/runtime_py3/importer.pxi index 901c9faa3a1..66ecd35167a 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  | 
