Name
expandvars
Synopsis
expandvars(path
)
Returns a copy of string path
, replacing
each substring of the form
"$
name
"
or
"${
name
}
"
with the value of environment variable
name
. The replacement is an empty string
if name
does not exist in the environment.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.