summaryrefslogtreecommitdiffstats
path: root/library/python
diff options
context:
space:
mode:
authorMaxim Yurchuk <[email protected]>2024-12-13 10:22:13 +0000
committerGitHub <[email protected]>2024-12-13 10:22:13 +0000
commite73e490feb4e1f63d097697324aa48b643a62317 (patch)
treef63fe3d15819a5148ade51609c5211251d93e425 /library/python
parent19346460a8060a0ed4731edb192745642ff34b3d (diff)
parent4dde77404d1eae4a633d1cc3807142409a9938eb (diff)
Merge pull request #12582 from vitalyisaev2/rightlib_20241212
Merge rightlib 20241212
Diffstat (limited to 'library/python')
-rw-r--r--library/python/testing/yatest_common/yatest/common/runtime.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/runtime.py b/library/python/testing/yatest_common/yatest/common/runtime.py
index e4f246d5c83..99a6799109b 100644
--- a/library/python/testing/yatest_common/yatest/common/runtime.py
+++ b/library/python/testing/yatest_common/yatest/common/runtime.py
@@ -190,9 +190,9 @@ def data_path(path=None):
:param path: path relative to the arcadia_tests_data directory, e.g. yatest.common.data_path("pers/rerank_service")
:return: absolute path inside arcadia_tests_data
"""
- if "USE_ATD_FROM_SNAPSHOT" in os.environ:
- return os.path.join(source_path(), "atd_ro_snapshot", path)
- return _join_path(_get_ya_plugin_instance().data_root, path)
+ if "USE_ATD_FROM_ATD" in os.environ:
+ return _join_path(_get_ya_plugin_instance().data_root, path)
+ return _join_path(source_path("atd_ro_snapshot"), path)
@default_arg0