[issue21301] pathlib missing Path.expandvars(env=os.environ)
Alain Mellan added the comment: Yes, you can close it. — alain. On Mar 25, 2017, at 23:51 , Serhiy Storchaka wrote: http://bugs.python.org/issue21301 <http://bugs.python.org/issue21301> -- ___ Python tracker <http://bugs.python.org/issue21301> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21301] pathlib missing Path.expandvars(env=os.environ)
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 <http://bugs.python.org/issue21301> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com