# HG changeset patch # User Sebastien Jodogne # Date 1438262211 -7200 # Node ID e633a8ab6f31a767433db75bf8c8b9f73bde88a0 # Parent 38b8d0ce4e17080513925d24d5d9d2cf72c8e939 sync diff -r 38b8d0ce4e17 -r e633a8ab6f31 Orthanc/Resources/WindowsResources.py --- a/Orthanc/Resources/WindowsResources.py Thu Jul 30 14:50:33 2015 +0200 +++ b/Orthanc/Resources/WindowsResources.py Thu Jul 30 15:16:51 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'