Commits

Benoît Allard committed 4f082ba

Restore compatibility with python2.5, use relative_path from docutils in place of path.relpath

Same as on the other places

  • Participants
  • Parent commits a8d7b62
  • Branches stable

Comments (0)

Files changed (1)

File sphinx/environment.py

         settings, source = self.document.settings, self.document['source']
         # XXX check if this is reliable
         assert source.startswith(env.srcdir)
-        docname = path.splitext(path.relpath(source, env.srcdir))[0]
+        docname = path.splitext(relative_path(source, env.srcdir))[0]
         textdomain = find_catalog(docname,
                                   self.document.settings.gettext_compact)