From e314776c2ea4af846aeef86a3309ce15815c2138 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 5 Jul 2024 08:25:10 -0700 Subject: [PATCH] Fix version check --- support/manage.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/support/manage.py b/support/manage.py index 928affe2..3467afb0 100755 --- a/support/manage.py +++ b/support/manage.py @@ -145,8 +145,9 @@ def release(args): first_section.pop(0) ns_version = None - for line in fileinput.input(os.path.join(fmt_repo.dir, 'base.h')): - m = re.match(r'inline namespace v(.*)', line) + base_h_path = os.path.join(fmt_repo.dir, 'include', 'fmt', 'base.h') + for line in fileinput.input(base_h_path): + m = re.match(r'\s*inline namespace v(.*) .*', line) if m: ns_version = m.group(1) break