Comment 17 for bug 358719

Revision history for this message
Roger Erens (rogererens) wrote :
  • p2 Edit (981 bytes, text/plain)

Hi Uli,

just to give you the idea about another choice: here's a patch for
z3c.recipe.template-0.1-py2.5.egg/z3c/recipe/template/__init__.py

When a backward slash is detected on a line, it is assumed that the line contains a Windows-style path.
The path is normalized, such that forward slashes are replace by backward slashes. To obtain strings in which the backslashes are escaped, the repr() is used. The function repr() returns strings that are single or double quoted; these quotes are trimmed, otherwise the processing of zope.conf by paster fails.

It results in paths on Windows having double backslashes (but not in the %(here)/zope.conf result). Linux paths still have the same forward slashes.

Cheers,

Roger