Skip to content

Commit

Permalink
expand env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierCladellas committed Oct 30, 2024
1 parent b00021d commit ed66d37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/feelpp/benchmarking/reframe/config/configSchemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ class ConfigFile(BaseModel):
parameters: List[Parameter]
plots: List[Plot]

@field_validator("output_directory",mode="before")
@classmethod
def expandEnvVars(cls,v):
"""Expand environment variables on the values for path fields"""
return os.path.expandvars(v)


@model_validator(mode="after")
def checkPlotAxisParameters(self):
Expand Down

0 comments on commit ed66d37

Please sign in to comment.