From 0298bcbe79ec9c010282eb59d79848f17bada7ed Mon Sep 17 00:00:00 2001 From: harshasrinivas Date: Fri, 24 Mar 2017 18:13:08 +0530 Subject: [PATCH] Update Makefile to open webbrowser in MacOS (#2661) --- docs/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index eaba3ba2b..a3d1611f9 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -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/*