diff options
author | Georg Brandl <georg@python.org> | 2008-03-16 20:52:34 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-16 20:52:34 +0000 |
commit | ae7273b9aea9d4e569cefeacf9b6048d4b9d5ca1 (patch) | |
tree | 8dcc3ddc2be7d84d0fd610aaaa6e2e764bbfb2ba /sphinx/builder.py | |
parent | 2f37a149399dfa4bdf58b2a0dd574cc58e06f021 (diff) | |
download | sphinx-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.py | 3 |
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('.'): |