From 2f03bb5f125ccfffed76327320dd4c01a68e5553 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 30 Mar 2013 12:33:31 +0100 Subject: [PATCH] environment: clarify docstring --- sphinx/environment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sphinx/environment.py b/sphinx/environment.py index e7e030240..5c1947c72 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -309,8 +309,9 @@ class BuildEnvironment: """Return paths to a file referenced from a document, relative to documentation root and absolute. - Absolute filenames are relative to the source dir, while relative - filenames are relative to the dir of the containing document. + In the input "filename", absolute filenames are taken as relative to the + source dir, while relative filenames are relative to the dir of the + containing document. """ if filename.startswith('/') or filename.startswith(os.sep): rel_fn = filename[1:]