aboutsummaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 59cb50d4..8659b507 100644
--- a/utils.py
+++ b/utils.py
@@ -77,6 +77,12 @@ def copydir(src, dst, logger=None, filter=None, ignore=None, force=True,
if vars is not None:
src = subst_vars(src, **vars)
dst = subst_vars(dst, **vars)
+ if filter is not None:
+ for i in range(len(filter)):
+ filter[i] = subst_vars(filter[i], **vars)
+ if ignore is not None:
+ for i in range(len(ignore)):
+ ignore[i] = subst_vars(ignore[i], **vars)
if not os.path.exists(src) and not force:
if logger is not None: