summaryrefslogtreecommitdiff
path: root/sphinx/builders
diff options
context:
space:
mode:
authorViktor Haag <Viktor.Haag@Desire2Learn.com>2014-01-20 10:37:37 -0500
committerViktor Haag <Viktor.Haag@Desire2Learn.com>2014-01-20 10:37:37 -0500
commit532b3da1eb5e6ee7ff0cd5e266bc22097bf5a883 (patch)
treed8faf1d0a66aa051d1a72050679e9cf6e626c316 /sphinx/builders
parent6319eba07bf568873acd8ba0536d5d3750821b2e (diff)
downloadsphinx-532b3da1eb5e6ee7ff0cd5e266bc22097bf5a883.tar.gz
address issue #1352 -- make sure to check for the actual file stored in config.html_logo.
Diffstat (limited to 'sphinx/builders')
-rw-r--r--sphinx/builders/html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py
index dd62e2ba..fe64d2aa 100644
--- a/sphinx/builders/html.py
+++ b/sphinx/builders/html.py
@@ -597,8 +597,8 @@ class StandaloneHTMLBuilder(Builder):
if self.config.html_logo:
logobase = path.basename(self.config.html_logo)
logotarget = path.join(self.outdir, '_static', logobase)
- if not path.isfile(logobase):
- self.warn('logo file %r does not exist' % logobase)
+ if not path.isfile(path.realpath(self.config.html_logo)):
+ self.warn('logo file %r does not exist' % self.config.html_logo)
elif not path.isfile(logotarget):
copyfile(path.join(self.confdir, self.config.html_logo),
logotarget)