converting from shell script to python

Mathias Waack mathias-usenet at valpo.de
Wed Apr 2 01:38:32 EST 2003


"Greg Ewing (using news.cis.dfn.de)" <ckea25d02 at sneakemail.com>
wrote:  
> Alternatively, you can substitute things from a
> dictionary instead of a tuple:
> 
>    vars = {'ROOTDIR': '/usr/lib'}
>    CLASSPATH = \
>      "%{ROOTDIR}s/a/a.jar:%{ROOTDIR}s/b/b.jar:%{ROOTDIR}s/c/c.jar
>      " % vars 

Didn't know that before. Its nice - thanks for the hint. 

Mathias




More information about the Python-list mailing list