aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/_common.py
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /build/plugins/_common.py
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 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 2f831a94db..5d276b54d7 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:]