def compile_messages(self, locations): # Avoid compiling po files in DATA_DIR locations = [ location for location in locations if not should_skip(location[0]) ] if not locations: return super().compile_messages(locations)
def find_files(self, root): return [obj for obj in super().find_files(root) if not should_skip(obj.path)]