def relative_to(self, base, dot=False): for field in [ "inc_dirs", "headers", "s_sources", "c_sources", "cpp_sources", "lib_dirs", "objects", "libraries", "lib_builds", "lib_refs", "repo_dirs", "repo_files", "hex_files", "bin_files", "json_files", ]: v = [rel_path(f, base, dot) for f in getattr(self, field)] setattr(self, field, v) for f in self.features: self.features[f] = rel_path(self.features[f], base, dot) if self.linker_script is not None: self.linker_script = rel_path(self.linker_script, base, dot)
def relative_to(self, base, dot=False): for field in ['inc_dirs', 'headers', 's_sources', 'c_sources', 'cpp_sources', 'lib_dirs', 'objects', 'libraries', 'lib_builds', 'lib_refs', 'repo_dirs', 'repo_files', 'hex_files', 'bin_files', 'json_files']: v = [rel_path(f, base, dot) for f in getattr(self, field)] setattr(self, field, v) if self.linker_script is not None: self.linker_script = rel_path(self.linker_script, base, dot)
def relative_to(self, base, dot=False): for field in [ 'inc_dirs', 'headers', 's_sources', 'c_sources', 'cpp_sources', 'lib_dirs', 'objects', 'libraries', 'lib_builds', 'lib_refs', 'repo_dirs', 'repo_files', 'hex_files', 'bin_files', 'json_files' ]: v = [rel_path(f, base, dot) for f in getattr(self, field)] setattr(self, field, v) if self.linker_script is not None: self.linker_script = rel_path(self.linker_script, base, dot)