def __init__(self, generator, subdir, preserve_path_from=None, extra_args=[]):
    if hasattr(generator, 'held_object'):
        generator = generator.held_object
    self.generator = generator
    self.name = self.generator.exe
    self.subdir = subdir
    self.infilelist = []
    self.outfilelist = []
    self.outmap = {}
    self.extra_depends = []
    self.preserve_path_from = preserve_path_from
    self.extra_args = extra_args
def __init__(self, generator, subdir, preserve_path_from=None, extra_args=[]):
    if hasattr(generator, 'held_object'):
        generator = generator.held_object
    self.generator = generator
    self.name = self.generator.exe
    self.subdir = subdir
    self.infilelist = []
    self.outfilelist = []
    self.outmap = {}
    self.extra_depends = []
    self.preserve_path_from = preserve_path_from
    self.extra_args = extra_args