[issue21301] pathlib missing Path.expandvars(env=os.environ)
Alain Mellan
report at bugs.python.org
Fri Apr 18 21:31:05 CEST 2014
New submission from Alain Mellan:
A lot of times paths are manipulated with environment variables that may even be expanded multiple times in a loop. For example, I have a path defined as "$RUNDIR/logfile.txt" and expanding the path for a bunch of different RUNDIRs in a loop.
By default, it should take os.environ and optionally a different dictionary.
Just like os.path.expandvars(), it should expand $VAR, ${VAR} and %VAR%
----------
components: Library (Lib)
messages: 216796
nosy: Alain.Mellan
priority: normal
severity: normal
status: open
title: pathlib missing Path.expandvars(env=os.environ)
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21301>
_______________________________________
More information about the Python-bugs-list
mailing list