aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/_common.py
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /build/plugins/_common.py
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/plugins/_common.py')
-rw-r--r--build/plugins/_common.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/build/plugins/_common.py b/build/plugins/_common.py
index 5d276b54d7..2f831a94db 100644
--- a/build/plugins/_common.py
+++ b/build/plugins/_common.py
@@ -115,10 +115,10 @@ def resolve_to_abs_path(path, source_root, build_root):
return path
-def resolve_to_ymake_path(path):
- return resolve_to_abs_path(path, '${ARCADIA_ROOT}', '${ARCADIA_BUILD_ROOT}')
-
-
+def resolve_to_ymake_path(path):
+ return resolve_to_abs_path(path, '${ARCADIA_ROOT}', '${ARCADIA_BUILD_ROOT}')
+
+
def join_intl_paths(*args):
return '/'.join(args)
@@ -135,17 +135,17 @@ def make_tuples(arg_list):
return list(tpl())
-def resolve_includes(unit, src, paths):
- return unit.resolve_include([src] + paths) if paths else []
-
-
+def resolve_includes(unit, src, paths):
+ return unit.resolve_include([src] + paths) if paths else []
+
+
def rootrel_arc_src(src, unit):
if src.startswith('${ARCADIA_ROOT}/'):
return src[16:]
- if src.startswith('${ARCADIA_BUILD_ROOT}/'):
- return src[22:]
-
+ if src.startswith('${ARCADIA_BUILD_ROOT}/'):
+ return src[22:]
+
elif src.startswith('${CURDIR}/'):
return unit.path()[3:] + '/' + src[10:]