Context I’ve written a Python code that: First generates PlantUML .uml files. Then runs a Java command to locally compile those .uml files into .png diagrams. Exports those diagrams into a /images directory for latex compilation. Then compiles a latex document that integrates those generated PlantUML diagrams. Code The Python that compiles the .uml files into .png files is: And