def _add_files(self, source, dest):
        '''add files is the underlying function called to add files to the
           list, whether originally called from the functions to parse archives,
           or https. We make sure that any local references are changed to
           actual file locations before adding to the files list.
     
           Parameters
           ==========
           source: the source
           dest: the destiation
        '''

        # Create data structure to iterate over

        paths = {'source': source,
                 'dest': dest}

        for pathtype, path in paths.items():
            if path == ".":
                paths[pathtype] = os.getcwd()
 
            # Warning if doesn't exist
            if not os.path.exists(path):
                bot.warning("%s doesn't exist, ensure exists for build" %path)

        # The pair is added to the files as a list
        self.files.append([paths['source'], paths['dest']])
def _add_files ( self , source , dest ) : paths = { 'source' : source , 'dest' : dest } for pathtype , path in paths . items ( ) : if path == "." : paths [ pathtype ] = os . getcwd ( ) if not os . path . exists ( path ) : bot . warning ( "%s doesn't exist, ensure exists for build" % path ) self . files . append ( [ paths [ 'source' ] , paths [ 'dest' ] ] )
add files is the underlying function called to add files to the
           list, whether originally called from the functions to parse archives,
           or https. We make sure that any local references are changed to
           actual file locations before adding to the files list.
     
           Parameters
           ==========
           source: the source
           dest: the destiation