From: <wi...@us...> - 2007-08-19 22:32:21
|
Author: wiemann Date: 2007-08-20 00:32:00 +0200 (Mon, 20 Aug 2007) New Revision: 5408 Modified: branches/subdocs/docutils/parsers/rst/directives/parts.py Log: docset-root should be relative to current file, not current document (tested with standard.txt checked in in previous revision) Modified: branches/subdocs/docutils/parsers/rst/directives/parts.py =================================================================== --- branches/subdocs/docutils/parsers/rst/directives/parts.py 2007-08-19 22:29:01 UTC (rev 5407) +++ branches/subdocs/docutils/parsers/rst/directives/parts.py 2007-08-19 22:32:00 UTC (rev 5408) @@ -288,7 +288,8 @@ '(reader.source.source_path) cannot be ' 'determined') path = os.path.join( - os.path.dirname(self.reader.source.source_path), path) + os.path.dirname(self.state_machine.input_lines.source( + self.lineno - self.state_machine.input_offset - 1)), path) path = utils.normalize_path(path) document = self.state_machine.document if not document.hasattr('docset_root'): |