summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index 6fef84f2da..069d578847 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -236,3 +236,8 @@ def to_list(str):
if isinstance(str, list):
return str
return shlex.split(str)
+
+@conf
+def SUBST_ENV_VAR(conf, varname):
+ '''Substitute an environment variable for any embedded variables'''
+ return Utils.subst_vars(conf.env[varname], conf.env)