summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sphinx/directives/other.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py
index 246d6403..7647e738 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)