Merge pull request #2682 from harshasrinivas/compile-docs-open-webbrowser

[MRG+1] Update Makefile to open webbrowser in MacOS (#2661)
This commit is contained in:
Mikhail Korobov 2017-03-24 19:31:52 +05:00 committed by GitHub
commit 34f4434b17
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ pydoc-topics: build
"into the Lib/ directory"
htmlview: html
$(PYTHON) -c "import webbrowser; webbrowser.open('build/html/index.html')"
$(PYTHON) -c "import webbrowser, os; webbrowser.open('file://' + \
os.path.realpath('build/html/index.html'))"
clean:
-rm -rf build/*