def _ConvertToolsToExpectedForm(tools):
 tool_list = []
 for (tool, settings) in tools.iteritems():
  settings_fixed = {}
  for (setting, value) in settings.iteritems():
   if (type(value) == list):
    if (((tool == 'VCLinkerTool') and (setting == 'AdditionalDependencies')) or (setting == 'AdditionalOptions')):
     settings_fixed[setting] = ' '.join(value)
    else:
     settings_fixed[setting] = ';'.join(value)
   else:
    settings_fixed[setting] = value
  tool_list.append(MSVSProject.Tool(tool, settings_fixed))
 return tool_list

def _ConvertToolsToExpectedForm ( tools ) : tool_list = [ ] for ( tool , settings ) in tools . iteritems ( ) : settings_fixed = { } for ( setting , value ) in settings . iteritems ( ) : if ( type ( value ) == list ) : if ( ( ( tool == 'VCLinkerTool' ) and ( setting == 'AdditionalDependencies' ) ) or ( setting == 'AdditionalOptions' ) ) : settings_fixed [ setting ] = ' ' . join ( value ) else : settings_fixed [ setting ] = ';' . join ( value ) else : settings_fixed [ setting ] = value tool_list . append ( MSVSProject . Tool ( tool , settings_fixed ) ) return tool_list
convert tools to a form expected by visual studio .