#NEWLINE# def add_modules( self , modules ) : #NEWLINE# #INDENT# 'Adds a list of modules to the project.\n\n    Args:\n      modules: A list of modules to add.\n\n    Raises:\n      KeyError: A module with the given name already exists in the project.\n    ' #NEWLINE# for module in modules : #NEWLINE# #INDENT# if self . modules . get ( module . path , None ) : #NEWLINE# #INDENT# raise KeyError ( ( 'A module with the path "%s" is already defined' % module . path ) ) #NEWLINE# #UNINDENT# #UNINDENT# for module in modules : #NEWLINE# #INDENT# self . modules [ module . path ] = module