ctcci: Get xmlpatch command from config

This commit is contained in:
ave 2021-08-22 19:41:58 +03:00
parent 2786de6c73
commit b6f80bbee0
2 changed files with 2 additions and 1 deletions

View file

@ -21,7 +21,7 @@ def xmlpatch(patch_file, workdir, patch_name=""):
print(f"Applying {patch_file}")
subprocess.run(f"java -cp /opt/ctc/tools/xml-patch.jar com.github.dnault.xmlpatch.BatchPatcher --patch {patch_file} --srcdir {workdir}",
subprocess.run(f"{XML_PATCH_BIN} com.github.dnault.xmlpatch.BatchPatcher --patch {patch_file} --srcdir {workdir}",
shell=True, check=True, cwd=workdir)
def patch(patch_file, workdir, patch_name=""):