Genshi absolute path includes
1 July 2008
09:18
as Diff
| 1 | Index: genshi/template/loader.py |
|---|---|
| 2 | =================================================================== |
| 3 | --- genshi/template/loader.py (revision 893) |
| 4 | +++ genshi/template/loader.py (working copy) |
| 5 | @@ -163,6 +163,7 @@ |
| 6 | """ |
| 7 | if cls is None: |
| 8 | cls = self.default_class |
| 9 | + |
| 10 | if relative_to and not os.path.isabs(relative_to): |
| 11 | filename = os.path.join(os.path.dirname(relative_to), filename) |
| 12 | filename = os.path.normpath(filename) |
Comments
No comments so far.
