Skip to content

Commit 4237e00

Browse files
authored
fix - use absolute path in make_and_open_docs.py (#1048)
* fix - use absolute path in make_and_open_docs.py * use as_uri on the absolute path to build the URI
1 parent 4336cbd commit 4237e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/make_and_open_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
path_makefile = Path(__file__).parents[1] / "docs"
77
os.system(f"cd {path_makefile} && make html")
88

9-
website = "file://" + str(path_makefile / "build" / "html" / "index.html")
9+
website = (path_makefile / "build" / "html" / "index.html").absolute().as_uri()
1010
try: # Allows you to pass a custom browser if you want.
1111
webbrowser.get(sys.argv[1]).open_new_tab(f"{website}")
1212
except IndexError:

0 commit comments

Comments
 (0)