Mercurial > genshi > mirror
diff markup/template.py @ 153:fc2ff46d1ae3 trunk
Fix relative includes on Windows. Closes #27.
author | cmlenz |
---|---|
date | Wed, 16 Aug 2006 10:35:01 +0000 |
parents | cdb2a1f930e2 |
children | 8bd5c8cd33e0 |
line wrap: on
line diff
--- a/markup/template.py +++ b/markup/template.py @@ -21,7 +21,6 @@ def popleft(self): return self.pop(0) import compiler import os -import posixpath import re from StringIO import StringIO @@ -1052,7 +1051,7 @@ from markup.filters import IncludeFilter if relative_to: - filename = posixpath.join(posixpath.dirname(relative_to), filename) + filename = os.path.join(os.path.dirname(relative_to), filename) filename = os.path.normpath(filename) # First check the cache to avoid reparsing the same file