Ticket #465: loader.diff
| File loader.diff, 695 bytes (added by Nicolas Évrard <nicolas.evrard@…>, 11 years ago) |
|---|
-
genshi/template/loader.py
178 178 # Make the filename relative to the template file its being loaded 179 179 # from, but only if that file is specified as a relative path, or no 180 180 # search path has been set up 181 if relative_to and (not search_path or not os.path.isabs( relative_to)):181 if relative_to and (not search_path or not os.path.isabs(filename)): 182 182 filename = os.path.join(os.path.dirname(relative_to), filename) 183 183 184 184 filename = os.path.normpath(filename)
