From 22546c4ebe474f9faaf2db87602e3d93004cfb59 Mon Sep 17 00:00:00 2001 From: Benoit Allard Date: Wed, 26 Oct 2011 17:27:42 +0200 Subject: [PATCH] Restore compatibility with python2.5, use relative_path from docutils in place of path.relpath Same as on the other places --- sphinx/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/environment.py b/sphinx/environment.py index ae353ad44..54d9ee15e 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -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)