#NEWLINE# @ modules . action #NEWLINE# def add( self , values ) : #NEWLINE# #INDENT# 'adds/edits a module for Please' #NEWLINE# config = self . get_config ( ) #NEWLINE# module_name = self . get_module_name ( values ) #NEWLINE# self . extra_params ( values [ 1 : ] ) #NEWLINE# try : #NEWLINE# #INDENT# path = config . get ( 'modules' , module_name ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# path = None #NEWLINE# #UNINDENT# path = self . ask ( 'Path to the module?' , path ) #NEWLINE# self . register ( module_name , path ) #NEWLINE# self . success ( ( 'Registered "%s" as "%s"' % ( module_name , path ) ) )