12 lines
1008 B
Python
12 lines
1008 B
Python
from pathlib import Path
|
|
OUT=Path(__file__).resolve().parent
|
|
t=(OUT/'finish-B7-review.py').read_text(encoding='utf-8')
|
|
a=t.index("groups=json.loads((OUT/'proof-groups.json')")
|
|
b=t.index("proof=json.loads((OUT/'csv-authoring-proof.json')")
|
|
t=t[:a]+"groups=json.loads((OUT/'proof-groups.json').read_text(encoding='utf-8'));saldo=json.loads((OUT/'option-B7-four-lots-plan.json').read_text(encoding='utf-8'))\n"+t[b:]
|
|
t=t.replace("dest=OUT/'option-B7-review-verification.json'","dest=OUT/'option-B7-final-review-verification.json'")
|
|
t=t.replace("latest_QA_product_delta=['app/Policies/ExistingBusinessPolicy.php','app/Http/Controllers/ExistingBusinessController.php']","latest_QA_product_delta=code['QA_product_delta_files']")
|
|
t=t.replace("'QA_bundle_unchanged':True,'recompile_required':False","'QA_bundle_unchanged':False,'recompile_required':True")
|
|
p=OUT/'verify-B7-final-menu.py';assert not p.exists();p.write_text(t,encoding='utf-8')
|
|
exec(compile(t,str(p),'exec'),{'__file__':str(p),'__name__':'__main__'})
|