aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/yndexer.py
diff options
context:
space:
mode:
authorrnefyodov <rnefyodov@yandex-team.ru>2022-02-10 16:47:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:17 +0300
commitc753751b693cf7c481c0292912e2b7536fa6d36a (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /build/scripts/yndexer.py
parentc22320e8c4f3d7be38c504706f137034e91d31e6 (diff)
downloadydb-c753751b693cf7c481c0292912e2b7536fa6d36a.tar.gz
Restoring authorship annotation for <rnefyodov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/yndexer.py')
-rw-r--r--build/scripts/yndexer.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/build/scripts/yndexer.py b/build/scripts/yndexer.py
index 71a6167ae45..a38e28ba99f 100644
--- a/build/scripts/yndexer.py
+++ b/build/scripts/yndexer.py
@@ -1,9 +1,9 @@
-import sys
-import subprocess
+import sys
+import subprocess
import threading
-import os
+import os
import re
-
+
rx_resource_dir = re.compile(r'libraries: =([^:]*)')
@@ -41,19 +41,19 @@ class Process(object):
return self._result
-if __name__ == '__main__':
- args = sys.argv
-
- yndexer = args[1]
+if __name__ == '__main__':
+ args = sys.argv
+
+ yndexer = args[1]
timeout = int(args[2])
arc_root = args[3]
build_root = args[4]
input_file = args[5]
output_file = args[-1]
tail_args = args[6:-1]
-
- subprocess.check_call(tail_args)
-
+
+ subprocess.check_call(tail_args)
+
clang = tail_args[0]
out = subprocess.check_output([clang, '-print-search-dirs'])
resource_dir = rx_resource_dir.search(out).group(1)
@@ -70,7 +70,7 @@ if __name__ == '__main__':
] + tail_args + [
'-resource-dir', resource_dir,
]
-
+
process = Process(yndexer_args)
result = process.wait(timeout=timeout)