summaryrefslogtreecommitdiff
path: root/sphinx/util
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-01-23 10:24:58 +0100
committerGeorg Brandl <georg@python.org>2014-01-23 10:24:58 +0100
commit82db8873089f02c52bd01470f2781a47c004d332 (patch)
tree867f3553471ce3b9c553b59e61372d8dfd0209bd /sphinx/util
parent1959d681ce28792585032a1090fe31157e8bbfa1 (diff)
downloadsphinx-82db8873089f02c52bd01470f2781a47c004d332.tar.gz
Closes #1358: Fix handling of image paths outside of the source directory when using the "wildcard" style reference.
Diffstat (limited to 'sphinx/util')
-rw-r--r--sphinx/util/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py
index a20fc19b..0fd4d49b 100644
--- a/sphinx/util/__init__.py
+++ b/sphinx/util/__init__.py
@@ -142,7 +142,7 @@ def copy_static_entry(source, targetdir, builder, context={},
Handles all possible cases of files, directories and subdirectories.
"""
if exclude_matchers:
- relpath = relative_path(builder.srcdir, source)
+ relpath = relative_path(path.join(builder.srcdir, 'dummy'), source)
for matcher in exclude_matchers:
if matcher(relpath):
return