summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
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):