import os
import struct
''' test if a executable is of x64 format @see http://stackoverflow.com/questions/1001404/check-if-unmanaged-dll-is-32-bit-or-64-bit/1002672#1002672
//offset to PE header is always at 0x3C
//PE header starts with "PE\0\0" = 0x50 0x45 0x00 0x00
//followed by 2-byte machine type field (see document above for enum)
'''
# throw new Exception("Can't find PE header")
pass
return True
return False
if is64bitArchitecture('..\..\inkscape\inkscape.exe'):
else:
# retrieve the version information from the inkscape.rc file
# VALUE "ProductVersion", "0.48+devel"
# version = version.replace("+", "_")
print versionstr + architecture
''' the second element contains now version info in the form major,minor,fix,build'''
wxi.write("<!-- do not edit, this file is created by version.py tool any changes will be lost -->\n")
if 'x64' in architecture:
else: