Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Update Makefile to open webbrowser in MacOS (#2661)

harshasrinivas0298bcbe79ec
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/*