diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index 246d64036..7647e7386 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -347,6 +347,10 @@ class Include(BaseInclude): def run(self): env = self.state.document.settings.env + if self.arguments[0].startswith('<') and \ + self.arguments[0].endswith('>'): + # docutils "standard" includes, do not do path processing + return BaseInclude.run(self) rel_filename, filename = env.relfn2path(self.arguments[0]) self.arguments[0] = filename return BaseInclude.run(self)