diff options
author | Dmitry Kopylov <kopylovd@gmail.com> | 2022-02-10 16:48:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:18 +0300 |
commit | b2f5101486cc0de2e979c8ba9ada2109785bf5fd (patch) | |
tree | affe28b840816b505db0467f2285b01c89c04247 /build/scripts/xargs.py | |
parent | e9b28b5aad71453a4637b70dde02e801e4147a2a (diff) | |
download | ydb-b2f5101486cc0de2e979c8ba9ada2109785bf5fd.tar.gz |
Restoring authorship annotation for Dmitry Kopylov <kopylovd@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'build/scripts/xargs.py')
-rw-r--r-- | build/scripts/xargs.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/build/scripts/xargs.py b/build/scripts/xargs.py index 5d68929ecc..8a6e93e027 100644 --- a/build/scripts/xargs.py +++ b/build/scripts/xargs.py @@ -2,17 +2,17 @@ import sys import os import subprocess -if __name__ == '__main__': - pos = sys.argv.index('--') - fname = sys.argv[pos + 1] - cmd = sys.argv[pos + 2:] +if __name__ == '__main__': + pos = sys.argv.index('--') + fname = sys.argv[pos + 1] + cmd = sys.argv[pos + 2:] - with open(fname, 'r') as f: - args = [x.strip() for x in f] + with open(fname, 'r') as f: + args = [x.strip() for x in f] - os.remove(fname) + os.remove(fname) - p = subprocess.Popen(cmd + args, shell=False, stderr=sys.stderr, stdout=sys.stdout) - p.communicate() + p = subprocess.Popen(cmd + args, shell=False, stderr=sys.stderr, stdout=sys.stdout) + p.communicate() - sys.exit(p.returncode) + sys.exit(p.returncode) |