Amaury Forgeot d'Arc <[email protected]> added the comment:
This is already part of 2.6:
>>> os.path.expandvars("%WIndir%/foo")
'C:\\WINNT/foo'
>>> os.path.expandvars("%invalid%")
'%invalid%'
----------
nosy: +amaury.forgeotdarc
resolution: -> out of date
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue824371>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com