def compute_target_dir(self, target): # Sources are all relative to their roots: relativize directories as well to avoid # breaking filesystem path length limits. return relativize_path(os.path.join(self.workdir, target.id), get_buildroot())
def compute_target_dir(tgt): # Sources are all relative to their roots: relativize directories as well to # breaking filesystem limits. return relativize_path(os.path.join(self.workdir, tgt.id), self._buildroot)