Index: genshi/template/loader.py
===================================================================
--- genshi/template/loader.py	(révision 1185)
+++ genshi/template/loader.py	(copie de travail)
@@ -178,7 +178,7 @@
         # Make the filename relative to the template file its being loaded
         # from, but only if that file is specified as a relative path, or no
         # search path has been set up
-        if relative_to and (not search_path or not os.path.isabs(relative_to)):
+        if relative_to and (not search_path or not os.path.isabs(filename)):
             filename = os.path.join(os.path.dirname(relative_to), filename)
 
         filename = os.path.normpath(filename)
