Browse Source

Used webbroswer module in docs Makefile.

Paolo Melchiorre 5 months ago
parent
commit
2d612162d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/Makefile

+ 1 - 1
docs/Makefile

@@ -61,7 +61,7 @@ html:
 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
 htmlview: html
-	$(PYTHON) -c "import webbrowser; webbrowser.open('_build/html/index.html')"
+	$(PYTHON) -m webbrowser "$(BUILDDIR)/html/index.html"
 
 dirhtml:
 	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml