diff Resources/WindowsResources.py @ 1470:b6a80a5ac500

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 Jul 2015 15:09:40 +0200
parents 5068de14eef1
children 0f8484114557
line wrap: on
line diff
--- a/Resources/WindowsResources.py	Thu Jul 30 14:12:12 2015 +0200
+++ b/Resources/WindowsResources.py	Thu Jul 30 15:09:40 2015 +0200
@@ -53,10 +53,13 @@
     RELEASE = 'Release %s' % VERSION
 
 v = VERSION.split('.')
-if len(v) != 3:
+if len(v) != 2 and len(v) != 3:
     sys.stderr.write('Bad version number: %s\n' % VERSION)
     sys.exit(-1)
 
+if len(v) == 2:
+    v.append(0)
+
 extension = os.path.splitext(FILENAME)[1]
 if extension.lower() == '.dll':
     BLOCK = '040904E4'