From 3c48b39c8e03a574e0134a83a29e6785155cea62 Mon Sep 17 00:00:00 2001 From: Daphne Odekerken Date: Mon, 16 Sep 2024 10:56:06 +0200 Subject: [PATCH] Fix documentation links. --- src/py_arg_visualisation/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/py_arg_visualisation/app.py b/src/py_arg_visualisation/app.py index 13f6f4f..ea45d12 100644 --- a/src/py_arg_visualisation/app.py +++ b/src/py_arg_visualisation/app.py @@ -134,7 +134,8 @@ def toggle_reference_modal(nr_of_clicks: int, is_open: bool, url_path: str): if url_path[0] == '/': url_path = url_path[1:] - reference_folder = pathlib.Path.cwd() / 'reference_texts' + reference_folder = \ + pathlib.Path(__file__).parent.resolve() / 'reference_texts' if url_path == '': search_name = '90_pyarg.md' else: