diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-03-03 18:13:24 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-03-03 18:13:24 +0000 |
commit | 92f710554dac6fb75e0c3b4bcf4a0305ee4df4c3 (patch) | |
tree | caf1f528de60c96dfa4f346e93b314bb8afa76a3 /misc_classes.py | |
parent | 9d1668c5e4820213406d18278116aad98fe83331 (diff) | |
download | Smarker-92f710554dac6fb75e0c3b4bcf4a0305ee4df4c3.tar.gz Smarker-92f710554dac6fb75e0c3b4bcf4a0305ee4df4c3.zip |
started working on rendering junitxml's nicely to pdfs
Diffstat (limited to 'misc_classes.py')
-rw-r--r-- | misc_classes.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/misc_classes.py b/misc_classes.py index 9fdded3..5bf16c1 100644 --- a/misc_classes.py +++ b/misc_classes.py @@ -2,8 +2,23 @@ from dataclasses import dataclass import tempfile
import zipfile
import shutil
+import jinja2
import os
+latex_jinja_env = jinja2.Environment(
+ block_start_string = '((*',
+ block_end_string = '*))',
+ variable_start_string = '(((',
+ variable_end_string = ')))',
+ comment_start_string = "((#",
+ comment_end_string = '#))',
+ line_statement_prefix = '%%',
+ line_comment_prefix = '%#',
+ trim_blocks = True,
+ autoescape = False,
+ loader = jinja2.FileSystemLoader(os.path.abspath('templates'))
+)
+
@dataclass
class ExtractZipToTempDir(tempfile.TemporaryDirectory):
zip_file:str
|