def load(self, filename, logo = True): self.filename = filename self.rel_path = rel_dir(filename) if logo: self.output.append("# generated with love by buildfox from %s" % filename) self.write_rel_path() parse(self, filename)
def on_include(self, obj): paths = self.eval_find_files([obj]) for path in paths: old_rel_path = self.rel_path self.rel_path = rel_dir(path) self.write_rel_path() parse(self, path) self.rel_path = old_rel_path