diff options
| author | Viktor Haag <Viktor.Haag@Desire2Learn.com> | 2014-01-20 10:37:37 -0500 |
|---|---|---|
| committer | Viktor Haag <Viktor.Haag@Desire2Learn.com> | 2014-01-20 10:37:37 -0500 |
| commit | 532b3da1eb5e6ee7ff0cd5e266bc22097bf5a883 (patch) | |
| tree | d8faf1d0a66aa051d1a72050679e9cf6e626c316 /sphinx/builders | |
| parent | 6319eba07bf568873acd8ba0536d5d3750821b2e (diff) | |
| download | sphinx-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.py | 4 |
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) |
