Skip to content

Commit

Permalink
expand env vars for derived attrs ?
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Aug 15, 2023
1 parent d92867c commit 9a25956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion peppy/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def _glob_regex(patterns):
f"attribute source: {regex}."
)
try:
vals = _format_regex(regex, dict(self.items()))
expanded_regex = os.path.expandvars(regex)
vals = _format_regex(expanded_regex, dict(self.items()))
_LOGGER.debug("Formatted regex: {}".format(vals))
except KeyError as ke:
_LOGGER.warning(f"{deriv_exc_base} Can't access {str(ke)} attribute")
Expand Down

0 comments on commit 9a25956

Please sign in to comment.