Commit graph

4 commits

Author SHA1 Message Date
Michael Schwarz
096db19a9a Wrap all Python main functions with decorator.
This decorator check if a module was called as the main module and catches exceptions.
2015-09-16 01:50:23 +02:00
Michael Schwarz
93f9696491 Check for Asymptote not writing a PDF file.
If no drawing commands are called in an Asymptote script, no PDF output is created and no error is generated. This confuses the build process, which expect a target to exist after its commands were called.

With this change, the Python wrapper checks whether a PDF was actually written and throws an error otherwise.
2015-09-16 01:50:23 +02:00
Michael Schwarz
ab26e5a8d5 Compile Asymptote files in separate working dir.
Asymptote leaves a trail of partially cleaned-up temporary files behind it when PDFLaTeX is used.

With this changes, Asymptote files are compiled in a temporary directory outside the project root.
2015-09-16 01:41:26 +02:00
Michael Schwarz
5a1604ce20 Use Python script to run Asymptote. 2015-08-07 02:03:33 +02:00