Edgewall Software

Ticket #465: loader.diff

File loader.diff, 695 bytes (added by Nicolas Évrard <nicolas.evrard@…>, 11 years ago)

patch following idea of MikeP

  • genshi/template/loader.py

     
    178178        # Make the filename relative to the template file its being loaded
    179179        # from, but only if that file is specified as a relative path, or no
    180180        # 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)):
    182182            filename = os.path.join(os.path.dirname(relative_to), filename)
    183183
    184184        filename = os.path.normpath(filename)