def add_file(self, newfile, state):
    self.infilelist.append(newfile)
    outfiles = self.generator.get_base_outnames(newfile.fname)
    if self.preserve_path_from:
        outfiles = self.add_preserved_path_segment(newfile, outfiles, state)
    self.outfilelist += outfiles
    self.outmap[newfile] = outfiles
def add_file(self, newfile, state):
    self.infilelist.append(newfile)
    outfiles = self.generator.get_base_outnames(newfile.fname)
    if self.preserve_path_from:
        outfiles = self.add_preserved_path_segment(newfile, outfiles, state)
    self.outfilelist += outfiles
    self.outmap[newfile] = outfiles