Update Makefile to open webbrowser in MacOS (#2661)

This commit is contained in:
harshasrinivas 2017-03-24 18:13:08 +05:30
parent ec55799d5e
commit 0298bcbe79
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/*