diff options
author | amosov-f <amosov-f@yandex-team.com> | 2023-12-12 00:33:51 +0300 |
---|---|---|
committer | amosov-f <amosov-f@yandex-team.com> | 2023-12-12 00:58:51 +0300 |
commit | ef65e9924c83ae5e0d545de48803641a76d86f80 (patch) | |
tree | 7fd811dac7eaf21186885cf456dcc6ecd776681a /contrib/python | |
parent | b8c6f928ac8754689d03f515c41d55073326a5fd (diff) | |
download | ydb-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__.py | 6 |
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: |