summaryrefslogtreecommitdiff
path: root/sphinx/builder.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-16 20:52:34 +0000
committerGeorg Brandl <georg@python.org>2008-03-16 20:52:34 +0000
commitae7273b9aea9d4e569cefeacf9b6048d4b9d5ca1 (patch)
tree8dcc3ddc2be7d84d0fd610aaaa6e2e764bbfb2ba /sphinx/builder.py
parent2f37a149399dfa4bdf58b2a0dd574cc58e06f021 (diff)
downloadsphinx-git-ae7273b9aea9d4e569cefeacf9b6048d4b9d5ca1.tar.gz
* Define __file__ during conf.py execution.
* Make staticpath relative to conf.py dir.
Diffstat (limited to 'sphinx/builder.py')
-rw-r--r--sphinx/builder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/builder.py b/sphinx/builder.py
index 0ca86c850..99bd3333a 100644
--- a/sphinx/builder.py
+++ b/sphinx/builder.py
@@ -448,7 +448,8 @@ class StandaloneHTMLBuilder(Builder):
self.info(bold('copying static files...'))
ensuredir(path.join(self.outdir, 'static'))
staticdirnames = [path.join(path.dirname(__file__), 'static')] + \
- self.config.html_static_path
+ [path.join(self.srcdir, spath)
+ for spath in self.config.html_static_path]
for staticdirname in staticdirnames:
for filename in os.listdir(staticdirname):
if not filename.startswith('.'):