aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/perl_wrapper.py
diff options
context:
space:
mode:
authorDmitry Kopylov <kopylovd@gmail.com>2022-02-10 16:48:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:18 +0300
commit7230275728d34873cba1ba78bb68669b0c5faa31 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /build/scripts/perl_wrapper.py
parentb2f5101486cc0de2e979c8ba9ada2109785bf5fd (diff)
downloadydb-7230275728d34873cba1ba78bb68669b0c5faa31.tar.gz
Restoring authorship annotation for Dmitry Kopylov <kopylovd@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/perl_wrapper.py')
-rw-r--r--build/scripts/perl_wrapper.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/build/scripts/perl_wrapper.py b/build/scripts/perl_wrapper.py
index fdb9beb1db..cb4027f1d3 100644
--- a/build/scripts/perl_wrapper.py
+++ b/build/scripts/perl_wrapper.py
@@ -2,23 +2,23 @@ import os
import sys
import shutil
-if __name__ == '__main__':
- path = sys.argv[1]
- to = sys.argv[-1]
- fr = sys.argv[-2]
- to_dir = os.path.dirname(to)
+if __name__ == '__main__':
+ path = sys.argv[1]
+ to = sys.argv[-1]
+ fr = sys.argv[-2]
+ to_dir = os.path.dirname(to)
- os.chdir(to_dir)
+ os.chdir(to_dir)
- f1 = os.path.basename(fr)
- fr_ = os.path.dirname(fr)
- f2 = os.path.basename(fr_)
- fr_ = os.path.dirname(fr_)
+ f1 = os.path.basename(fr)
+ fr_ = os.path.dirname(fr)
+ f2 = os.path.basename(fr_)
+ fr_ = os.path.dirname(fr_)
- os.makedirs(f2)
- shutil.copyfile(fr, os.path.join(f2, f1))
+ os.makedirs(f2)
+ shutil.copyfile(fr, os.path.join(f2, f1))
- if path[0] != '/':
- path = os.path.join(os.path.dirname(__file__), path)
+ if path[0] != '/':
+ path = os.path.join(os.path.dirname(__file__), path)
- os.execv(path, [path] + sys.argv[2:])
+ os.execv(path, [path] + sys.argv[2:])