aboutsummaryrefslogtreecommitdiff
path: root/tools/cru-py/cru/template.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-11-11 01:12:29 +0800
committerYuqian Yang <crupest@crupest.life>2024-12-27 16:16:29 +0800
commit7e9fdc36310d1bc63af4f4a0fc2f4963ae0154aa (patch)
tree32e9cdd3c2072ad16e9e1b68c8e4c252fa2749ed /tools/cru-py/cru/template.py
parentb834953fa61d816b9a955640ad12d244316ce904 (diff)
downloadcrupest-7e9fdc36310d1bc63af4f4a0fc2f4963ae0154aa.tar.gz
crupest-7e9fdc36310d1bc63af4f4a0fc2f4963ae0154aa.tar.bz2
crupest-7e9fdc36310d1bc63af4f4a0fc2f4963ae0154aa.zip
HALF WORK: 2024.12.27
Diffstat (limited to 'tools/cru-py/cru/template.py')
-rw-r--r--tools/cru-py/cru/template.py4
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