diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2017-09-12 14:46:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-12 14:46:35 -0700 |
commit | a06e5fdfb791d65946fe5f6123a3d7dc9f264912 (patch) | |
tree | a511a428c3cea5141378dcad7a9335c72a35f185 | |
parent | 02a76f1bd03f266f84846d59d5cc78e636b9daef (diff) | |
parent | 40c346ced94ecdb5a5d818d160f86e1be1c77046 (diff) |
Merge pull request #12516 from nicolasnoble/buildgen-bubble-break
Adding --base to generate_projects.py
-rwxr-xr-x | tools/buildgen/generate_projects.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/buildgen/generate_projects.py b/tools/buildgen/generate_projects.py index f885b26697..559ea1624b 100755 --- a/tools/buildgen/generate_projects.py +++ b/tools/buildgen/generate_projects.py @@ -34,6 +34,7 @@ argp.add_argument('build_files', nargs='+', default=[]) argp.add_argument('--templates', nargs='+', default=[]) argp.add_argument('--output_merged', default=None, type=str) argp.add_argument('--jobs', '-j', default=multiprocessing.cpu_count(), type=int) +argp.add_argument('--base', default='.', type=str) args = argp.parse_args() json = args.build_files @@ -69,7 +70,7 @@ jobs = [] for template in reversed(sorted(templates)): root, f = os.path.split(template) if os.path.splitext(f)[1] == '.template': - out_dir = '.' + root[len('templates'):] + out_dir = args.base + root[len('templates'):] out = out_dir + '/' + os.path.splitext(f)[0] if not os.path.exists(out_dir): os.makedirs(out_dir) |