comparison 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
comparison
equal deleted inserted replaced
1469:bf9b8bfea0e7 1470:b6a80a5ac500
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'