def _GetGuidOfProject(proj_path, spec):
 default_config = _GetDefaultConfiguration(spec)
 guid = default_config.get('msvs_guid')
 if guid:
  if (VALID_MSVS_GUID_CHARS.match(guid) is None):
   raise ValueError(('Invalid MSVS guid: "%s".  Must match regex: "%s".' % (guid, VALID_MSVS_GUID_CHARS.pattern)))
  guid = ('{%s}' % guid)
 guid = (guid or MSVSNew.MakeGuid(proj_path))
 return guid

def _GetGuidOfProject ( proj_path , spec ) : default_config = _GetDefaultConfiguration ( spec ) guid = default_config . get ( 'msvs_guid' ) if guid : if ( VALID_MSVS_GUID_CHARS . match ( guid ) is None ) : raise ValueError ( ( 'Invalid MSVS guid: "%s".  Must match regex: "%s".' % ( guid , VALID_MSVS_GUID_CHARS . pattern ) ) ) guid = ( '{%s}' % guid ) guid = ( guid or MSVSNew . MakeGuid ( proj_path ) ) return guid
get the guid for the project .