diff options
author | snermolaev <snermolaev@yandex-team.com> | 2024-07-22 09:17:46 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2024-07-22 09:34:05 +0300 |
commit | 38595c8a249ab9abf1e5214d104711b82d8d98c8 (patch) | |
tree | efd4bb148ab992d1b9623ff518c4b1e600887c0d /build/scripts | |
parent | 8eaee73be9c5fdfedddb46283506f8c0e248b47a (diff) | |
download | ydb-38595c8a249ab9abf1e5214d104711b82d8d98c8.tar.gz |
fix finding output for windows
f716810a9fedbb4497a907fd542cb5d7f54be0f9
Diffstat (limited to 'build/scripts')
-rw-r--r-- | build/scripts/go_proto_wrapper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/scripts/go_proto_wrapper.py b/build/scripts/go_proto_wrapper.py index a8d856db6f..1973d6e381 100644 --- a/build/scripts/go_proto_wrapper.py +++ b/build/scripts/go_proto_wrapper.py @@ -50,7 +50,8 @@ def main(args): m = re.match(OUT_DIR_FLAG_PATTERN, args[i]) if m: out_dir_flag = m.group(1) - index = max(len(out_dir_flag), args[i].rfind(':') + 1) + index = len(out_dir_flag) + index = max(index, args[i].find(':', index) + 1) out_dir = args[i][index:] if out_dir_orig: assert out_dir_orig == out_dir, 'Output directories do not match: [{}] and [{}]'.format( |