Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

fix - use absolute path in make_and_open_docs.py (#1048)

Kapil Sachdeva4237e00edc4f
diff --git a/scripts/make_and_open_docs.py b/scripts/make_and_open_docs.py
index 4822a5e8d..9baf51d00 100644
--- a/scripts/make_and_open_docs.py
+++ b/scripts/make_and_open_docs.py
@@ -6,7 +6,7 @@ import webbrowser
path_makefile = Path(__file__).parents[1] / "docs"
os.system(f"cd {path_makefile} && make html")
-website = "file://" + str(path_makefile / "build" / "html" / "index.html")
+website = (path_makefile / "build" / "html" / "index.html").absolute().as_uri()
try: # Allows you to pass a custom browser if you want.
webbrowser.get(sys.argv[1]).open_new_tab(f"{website}")
except IndexError: