summaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/conf.py b/conf.py
index 56b458ff8..db7b868df 100644
--- a/conf.py
+++ b/conf.py
@@ -224,13 +224,14 @@ def index_html():
import errno
cwd = os.getcwd()
try:
- os.makedirs('build/sphinx/html')
+ try:
+ os.makedirs('build/sphinx/html')
+ except OSError as error:
+ if error.errno != errno.EEXIST:
+ raise
os.chdir('build/sphinx/html')
os.symlink('README.html', 'index.html')
print 'index.html -> README.html'
- except OSError as error:
- if error.errno != errno.EEXIST:
- raise
finally:
os.chdir(cwd)