Fix version check

This commit is contained in:
Victor Zverovich 2024-07-05 08:25:10 -07:00
parent 2208143acc
commit e314776c2e

View File

@ -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