Mercurial > hg > orthanc-postgresql
changeset 40:e633a8ab6f31
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 Jul 2015 15:16:51 +0200 |
parents | 38b8d0ce4e17 |
children | a8fbc015832a |
files | Orthanc/Resources/WindowsResources.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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'