def __replace_in_commands(self, file, line=''): sub_task = SubTask(self) for command in self.__commands: # replace placeholder with actual created file sub_task.add_command(command.replace('$file', file).replace('$line', line)) return sub_task
def __replace_in_commands(self, file, line=''): sub_task = SubTask(self) for command in self.__commands: # replace placeholder with actual created file sub_task.add_command(command.replace('$file', file).replace('$line', line)) return sub_task