From 6d219f00fab4e1a2c89df2601d7f181c940936d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 6 Feb 2022 20:39:27 +0100 Subject: [PATCH] dump tmp changes --- PyTeX/tmp/generate_properties.py | 10 +++++++++- PyTeX/tmp/relpath.py | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/PyTeX/tmp/generate_properties.py b/PyTeX/tmp/generate_properties.py index f802e2b..e7e0c73 100644 --- a/PyTeX/tmp/generate_properties.py +++ b/PyTeX/tmp/generate_properties.py @@ -50,7 +50,15 @@ if __name__ == "__main__": ("use_docstrip_guards", []) ] ) - print(out) + out2 = generate_properties( + [ + ("recursive", True), + ("overwrite_existing_files", False), + ("clean_old_files", False), + ("allow_dirty", False) + ] + ) + print(out2) def generate_properties(attributes: List[Union[str, Tuple[str, Any]]]): attributes = [ diff --git a/PyTeX/tmp/relpath.py b/PyTeX/tmp/relpath.py index 80e0915..8967603 100644 --- a/PyTeX/tmp/relpath.py +++ b/PyTeX/tmp/relpath.py @@ -1,7 +1,7 @@ self._pytex_root_dir_type: PyTeXRootDirType = pytex_root_dir_type self._root_dir: Path = { PyTeXRootDirType.BUILD: build_dir_spec.build_root, - PyTeXRootDirType.PYTEX_SOURCE: build_dir_spec.source_root, + PyTeXRootDirType.PYTEX_SOURCE: build_dir_spec.pytex_source_root, PyTeXRootDirType.DOC: build_dir_spec.doc_root, - PyTeXRootDirType.TEX_SOURCE: build_dir_spec.tex_root + PyTeXRootDirType.TEX_SOURCE: build_dir_spec.tex_source_root }[self._pytex_root_dir_type]