Feat: activate solution worker

This commit is contained in:
2022-07-19 18:09:17 +02:00
parent 177128afe2
commit 37d779c0ab
7 changed files with 32 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
from bopytex.message import Message
def activate_corr(args, deps, output):
no_solution = args["latex"]["no_solution"]
solution = args["latex"]["solution"]
with open(deps[0], "r") as input_f:
with open(output, "w") as output_f:
for line in input_f.readlines():
output_f.write(line.replace(no_solution, solution))
return Message(0, [f"ACTIVATE CORR - {deps[0]} to {output}"], [])