diff options
Diffstat (limited to 'conf.py')
| -rw-r--r-- | conf.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) |
