@memoize
def get_sdk_root():
    'Returns the root of the currently configured Native Client SDK.'
    root = os.environ.get('NACL_SDK_ROOT')
    if (root is None):
        local_sdk_root = os.path.join(paths.OUT_DIR, 'nacl_sdk')
        if os.path.exists(local_sdk_root):
            root = local_sdk_root
        else:
            raise error.Error('$NACL_SDK_ROOT not set')
    if (sys.platform == 'cygwin'):
        root = root.replace('\\', '/')
    return root
Returns the root of the currently configured Native Client SDK.
@memoize
def get_sdk_root():
    
    root = os.environ.get('NACL_SDK_ROOT')
    if (root is None):
        local_sdk_root = os.path.join(paths.OUT_DIR, 'nacl_sdk')
        if os.path.exists(local_sdk_root):
            root = local_sdk_root
        else:
            raise error.Error('$NACL_SDK_ROOT not set')
    if (sys.platform == 'cygwin'):
        root = root.replace('\\', '/')
    return root