On Sep 2, 3:53 pm, "Edward K. Ream" <[email protected]> wrote:

> I corrected this by using something akin to string.Template. The new
> code replaces patterns of the form {{name}} by the app_name constant.
...
> It would be difficult to use string.Template because the triple quoted
> strings have a lot of dollar signs that don't correspond to top-level
> python vars.

It would be cute to replace all the nsis substitutions with
string.Template ${name} substitutions.  We could then do the actual
substitution in the put method.

I suppose would do this if I were writing the script from scratch.
However, having the nsis defines around perhaps might still be
useful.  Still, it's tempting to do away with all the horrid looking
$UPPER_CASE business.

Sigh.  Given how much cleaning I have already done, I suppose I won't
be able to resist :-)

Edward

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to