#NEWLINE# def _make( self , name , root = False ) : #NEWLINE# #INDENT# name = self . _parse_name ( name ) #NEWLINE# path = self . _get_path ( name ) #NEWLINE# if os . path . exists ( path ) : #NEWLINE# #INDENT# if ( not root ) : #NEWLINE# #INDENT# self . error ( ( '%s already exists' % name ) ) #NEWLINE# #UNINDENT# return False #NEWLINE# #UNINDENT# self . _make_directory ( os . path . dirname ( self ) ) #NEWLINE# with open ( path , 'w' ) as fh : #NEWLINE# #INDENT# fh . write ( self . _build_class ( name ) ) #NEWLINE# #UNINDENT# if root : #NEWLINE# #INDENT# with open ( os . path . join ( os . path . dirname ( path ) , '__init__.py' ) , 'w' ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# self . info ( ( '<fg=cyan>%s</> created successfully.' % name ) )