From f5b5b395e2c21c6c8a338a2b2641e3143534589c Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 13 Mar 2023 15:04:34 +1100 Subject: Support 4 digit version numbers so version 10.0.0 will work. --- scripts/ScintillaData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/ScintillaData.py') diff --git a/scripts/ScintillaData.py b/scripts/ScintillaData.py index 355b5d471..857da7dd5 100644 --- a/scripts/ScintillaData.py +++ b/scripts/ScintillaData.py @@ -49,8 +49,8 @@ class ScintillaData: def __init__(self, scintillaRoot): # Discover version information self.version = (scintillaRoot / "version.txt").read_text().strip() - self.versionDotted = self.version[0] + '.' + self.version[1] + '.' + \ - self.version[2] + self.versionDotted = self.version[0:-2] + '.' + self.version[-2] + '.' + \ + self.version[-1] self.versionCommad = self.versionDotted.replace(".", ", ") + ', 0' with (scintillaRoot / "doc" / "index.html").open() as f: -- cgit v1.2.3