native_client_sdk/src/tools/create_nmf.py
def GetSDKRoot():
  """Returns the root directory of the NaCl SDK.
  """
  # This script should be installed in NACL_SDK_ROOT/tools. Assert that
  # the 'toolchain' folder exists within this directory in case, for
  # example, this script is moved to a different location.
  # During the Chrome build this script is sometimes run outside of
  # of an SDK but in these cases it should always be run with --objdump=
  # and --no-default-libpath which avoids the need to call this function.
  sdk_root = os.path.dirname(SCRIPT_DIR)
  assert(os.path.exists(os.path.join(sdk_root, 'toolchain')))
  return sdk_root
Returns the root directory of the NaCl SDK.
  
Returns the root directory of the NaCl SDK.
Returns the root directory of the NaCl SDK .
def GetSDKRoot():
  sdk_root = os.path.dirname(SCRIPT_DIR)
  assert(os.path.exists(os.path.join(sdk_root, 'toolchain')))
  return sdk_root
def GetSDKRoot ( ) : sdk_root = os . path . dirname ( SCRIPT_DIR ) assert ( os . path . exists ( os . path . join ( sdk_root , 'toolchain' ) ) ) return sdk_root
Returns the root directory of the NaCl SDK.
Returns the root directory of the NaCl SDK .
"""Returns the root directory of the NaCl SDK.
  """ # This script should be installed in NACL_SDK_ROOT/tools. Assert that # the 'toolchain' folder exists within this directory in case, for # example, this script is moved to a different location. # During the Chrome build this script is sometimes run outside of # of an SDK but in these cases it should always be run with --objdump= # and --no-default-libpath which avoids the need to call this function.