dump tmp changes

This commit is contained in:
Maximilian Keßler 2022-02-06 20:39:27 +01:00
parent f2fc8a832d
commit 6d219f00fa
2 changed files with 11 additions and 3 deletions

View file

@ -50,7 +50,15 @@ if __name__ == "__main__":
("use_docstrip_guards", []) ("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]]]): def generate_properties(attributes: List[Union[str, Tuple[str, Any]]]):
attributes = [ attributes = [

View file

@ -1,7 +1,7 @@
self._pytex_root_dir_type: PyTeXRootDirType = pytex_root_dir_type self._pytex_root_dir_type: PyTeXRootDirType = pytex_root_dir_type
self._root_dir: Path = { self._root_dir: Path = {
PyTeXRootDirType.BUILD: build_dir_spec.build_root, 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.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] }[self._pytex_root_dir_type]