comparison 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
comparison
equal deleted inserted replaced
49:c06f1c00ce56 50:2578545f8d87
51 RELEASE = 'This is a mainline build, not an official release' 51 RELEASE = 'This is a mainline build, not an official release'
52 else: 52 else:
53 RELEASE = 'Release %s' % VERSION 53 RELEASE = 'Release %s' % VERSION
54 54
55 v = VERSION.split('.') 55 v = VERSION.split('.')
56 if len(v) != 3: 56 if len(v) != 2 and len(v) != 3:
57 sys.stderr.write('Bad version number: %s\n' % VERSION) 57 sys.stderr.write('Bad version number: %s\n' % VERSION)
58 sys.exit(-1) 58 sys.exit(-1)
59
60 if len(v) == 2:
61 v.append('0')
59 62
60 extension = os.path.splitext(FILENAME)[1] 63 extension = os.path.splitext(FILENAME)[1]
61 if extension.lower() == '.dll': 64 if extension.lower() == '.dll':
62 BLOCK = '040904E4' 65 BLOCK = '040904E4'
63 TYPE = 'VFT_DLL' 66 TYPE = 'VFT_DLL'