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

Same as on the other places
This commit is contained in:
Benoit Allard 2011-10-26 17:27:42 +02:00
parent 09d27b64c6
commit 22546c4ebe

View File

@ -198,7 +198,7 @@ class Locale(Transform):
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)