def get_current_arch():
    ' Try to get the architecture for the current platform '
    if sys.platform.startswith('win'):
        machine = platform.machine()
        if (machine == 'AMD64'):
            return get_arch('x86_64:wincc')
    elif (sys.platform in ('linux', 'darwin')):
        if (platform.architecture()[0] == '64bit'):
            return get_arch('x86_64')
Try to get the architecture for the current platform
def get_current_arch():
    '  '
    if sys.platform.startswith('win'):
        machine = platform.machine()
        if (machine == 'AMD64'):
            return get_arch('x86_64:wincc')
    elif (sys.platform in ('linux', 'darwin')):
        if (platform.architecture()[0] == '64bit'):
            return get_arch('x86_64')