Message85641
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' |
|
| Date |
User |
Action |
Args |
| 2009-04-06 12:45:29 | r.david.murray | set | recipients:
+ r.david.murray, gjb1002 |
| 2009-04-06 12:45:28 | r.david.murray | set | messageid: <1239021928.98.0.894462017734.issue1748960@psf.upfronthosting.co.za> |
| 2009-04-06 12:45:27 | r.david.murray | link | issue1748960 messages |
| 2009-04-06 12:45:27 | r.david.murray | create | |
|