[top] / posixpath / expandvars
expandvars(path)
Expand shell variables of form $var and ${var}. Unknown variables are left unchanged.