aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/ScintillaData.py
diff options
context:
space:
mode:
authormitchell <unknown>2018-06-30 09:18:26 -0400
committermitchell <unknown>2018-06-30 09:18:26 -0400
commita0d2795cb9f2f2af41ce24e296869654c4b99287 (patch)
tree1daf686fa802069ce3b114b2bdc708545184515a /scripts/ScintillaData.py
parent0ec088ea2def1bae5c51b82d0683ebb0406da083 (diff)
downloadscintilla-mirror-a0d2795cb9f2f2af41ce24e296869654c4b99287.tar.gz
Updated for 3.10.0.rel-3-10-0
Diffstat (limited to 'scripts/ScintillaData.py')
-rw-r--r--scripts/ScintillaData.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/ScintillaData.py b/scripts/ScintillaData.py
index 0ac1eddfa..385db59af 100644
--- a/scripts/ScintillaData.py
+++ b/scripts/ScintillaData.py
@@ -195,10 +195,16 @@ class ScintillaData:
# Discover verion information
with open(scintillaRoot + "version.txt") as f:
self.version = f.read().strip()
- self.versionDotted = self.version[0] + '.' + self.version[1] + '.' + \
- self.version[2]
- self.versionCommad = self.version[0] + ', ' + self.version[1] + ', ' + \
- self.version[2] + ', 0'
+ if len(self.version) == 3:
+ self.versionDotted = self.version[0] + '.' + self.version[1] + '.' + \
+ self.version[2]
+ self.versionCommad = self.version[0] + ', ' + self.version[1] + ', ' + \
+ self.version[2] + ', 0'
+ else:
+ self.versionDotted = self.version[0] + '.' + self.version[1:3] + '.' + \
+ self.version[3]
+ self.versionCommad = self.version[0] + ', ' + self.version[1:3] + ', ' + \
+ self.version[3] + ', 0'
with open(scintillaRoot + "doc/index.html") as f:
self.dateModified = [l for l in f.readlines() if "Date.Modified" in l]\