1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 12:34:16 +00:00

Merge branch 'dyninclude'

This commit is contained in:
deadc0de6
2019-02-27 15:55:30 +01:00
3 changed files with 143 additions and 0 deletions

View File

@@ -361,7 +361,11 @@ class Cfg:
if not self.lnk_profiles[profile][self.key_profiles_incl]:
# empty include found
return included
variables = self.get_variables(profile, debug=self.debug)
t = Templategen(variables=variables)
for other in self.lnk_profiles[profile][self.key_profiles_incl]:
# resolve include value
other = t.generate_string(other)
if other not in self.prodots:
# no such profile
self.log.warn('unknown included profile \"{}\"'.format(other))