1. Chris Withers
  2. sphinx


Benoit 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

View file
  • Ignore whitespace
         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,