[twill] use of variables in go statement
Robert Marianski
rmarianski at openplans.org
Wed Nov 29 16:15:48 PST 2006
On Wed, Nov 29, 2006 at 04:12:07PM -0800, Peri Cumali wrote:
> I have a small python script to give me the name of a random game and I
> would like to use it in a go statement. e.g. /game/$gameName/buy. How
> ever I can't seem to do this. It takes that literally.
>
> Work around is to do this:
> go /game/
> go $gameName
>
> however if I add a / at the end of $gameName it also goes to $gameName
> but not to the variable name.
>
> It would be cool if this was a bit more automagic.
>
> Thanks,
>
> Peri
Not sure if it will work for you, but try this:
go /game/${gameName}/buy
Robert
More information about the twill
mailing list