summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBlaise Laflamme <blaise@laflamme.org>2011-11-26 21:12:53 -0500
committerBlaise Laflamme <blaise@laflamme.org>2011-11-26 21:12:53 -0500
commitecf932c51b8f279199c68fc4925a2cdd0b0671a7 (patch)
treeb041eab68a6390ca5177bdb78843198936244ca3 /docs
parentecf7a2b8ec62c542aed17558d2525f495a72ae3b (diff)
downloadpyramid-ecf932c51b8f279199c68fc4925a2cdd0b0671a7.tar.gz
pyramid-ecf932c51b8f279199c68fc4925a2cdd0b0671a7.tar.bz2
pyramid-ecf932c51b8f279199c68fc4925a2cdd0b0671a7.zip
fix for themes on rtd
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index e37e758ce..39b6e7a04 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -49,7 +49,10 @@ wd = os.getcwd()
os.chdir(parent)
os.system('%s setup.py test -q' % sys.executable)
if rtd:
- os.system('git submodule update --init')
+ from subprocess import Popen, PIPE
+ p = subprocess.Popen('which git', shell=True, stdout=subprocess.PIPE)
+ git = p.stdout.read().strip()
+ os.system('rm -Rf docs/_themes; {0} submodule update --init'.format(git))
os.chdir(wd)
for item in os.listdir(parent):