[issue1748960] os.path.expandvars: expand string without modifying the environment

2009-04-06 Thread Geoffrey Bache
Geoffrey Bache added the comment: Thanks, didn't know about that feature. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1748960] os.path.expandvars: expand string without modifying the environment

2009-04-06 Thread R. David Murray
R. David Murray added the comment: Python has had a way to do this since python 2.4: >>> from string import Template >>> fullPath = Template("$ROOT/${SUBDIR/some/path").substitute(dict(ROOT='/users/geof', SUBDIR='subdir')) >>> fullPath '/users/geof/subdir/some/path' -- components: +Lib

[issue1748960] os.path.expandvars: expand string without modifying the environment

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed title: Extra optional argument to os.path.expandvars -> os.path.expandvars: expand string without modifying the environment type: -> feature request versions: +Python 2.7, Python 3.1 ___ Python tra