diff Orthanc/Resources/WindowsResources.py @ 50:2578545f8d87

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 Jul 2015 15:16:34 +0200
parents 05ac3f595ba5
children
line wrap: on
line diff
--- a/Orthanc/Resources/WindowsResources.py	Thu Jul 30 14:50:49 2015 +0200
+++ b/Orthanc/Resources/WindowsResources.py	Thu Jul 30 15:16:34 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'