diff options
author | crupest <crupest@outlook.com> | 2024-11-11 01:12:29 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2024-12-27 16:16:29 +0800 |
commit | 69f15f6319626c72707a7d7b461febcaf460570c (patch) | |
tree | 32e9cdd3c2072ad16e9e1b68c8e4c252fa2749ed /tools/cru-py/cru/template.py | |
parent | ce79647caae24e77fb2e978541a30dca29026b8a (diff) | |
download | crupest-69f15f6319626c72707a7d7b461febcaf460570c.tar.gz crupest-69f15f6319626c72707a7d7b461febcaf460570c.tar.bz2 crupest-69f15f6319626c72707a7d7b461febcaf460570c.zip |
HALF WORK: 2024.12.27
Diffstat (limited to 'tools/cru-py/cru/template.py')
-rw-r--r-- | tools/cru-py/cru/template.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/cru-py/cru/template.py b/tools/cru-py/cru/template.py index 2161804..ccb3ad8 100644 --- a/tools/cru-py/cru/template.py +++ b/tools/cru-py/cru/template.py @@ -79,14 +79,14 @@ class TemplateTree: prefix: str, source: str, destination: str, - exclude: Iterable[str], + exclude: Iterable[str] | None = None, template_file_suffix: str = ".template", ): self._prefix = prefix self._files: list[CruTemplateFile] | None = None self._source = source self._destination = destination - self._exclude = [os.path.normpath(p) for p in exclude] + self._exclude = [os.path.normpath(p) for p in exclude or []] self._template_file_suffix = template_file_suffix @property |