aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authoramosov-f <amosov-f@yandex-team.com>2023-12-12 00:33:51 +0300
committeramosov-f <amosov-f@yandex-team.com>2023-12-12 00:58:51 +0300
commitef65e9924c83ae5e0d545de48803641a76d86f80 (patch)
tree7fd811dac7eaf21186885cf456dcc6ecd776681a /contrib/python
parentb8c6f928ac8754689d03f515c41d55073326a5fd (diff)
downloadydb-ef65e9924c83ae5e0d545de48803641a76d86f80.tar.gz
Не работает ResourceManager.resource_filename вместе с Y_PYTHON_SOURCE_ROOT
Diffstat (limited to 'contrib/python')
-rw-r--r--contrib/python/setuptools/py3/pkg_resources/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/python/setuptools/py3/pkg_resources/__init__.py b/contrib/python/setuptools/py3/pkg_resources/__init__.py
index 283b90fda1..f2dfebb6dd 100644
--- a/contrib/python/setuptools/py3/pkg_resources/__init__.py
+++ b/contrib/python/setuptools/py3/pkg_resources/__init__.py
@@ -3304,7 +3304,11 @@ class UnionProvider(EmptyProvider):
return False
def _fn(self, base, resource_name):
- return [(p, p._fn(pp, resource_name)) for p, pp in base]
+ for p, pp in base:
+ if p._has(pp):
+ return p._fn(pp, resource_name)
+
+ raise IOError(resource_name)
def _get(self, path):
for p, pp in path: