From 6473655e57d31f6d30aaba82c7af24beecf2c9c2 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 13 Jun 2024 19:24:46 +0200 Subject: [PATCH] import fixes --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 45b53aa..bbeb3b8 100644 --- a/app/main.py +++ b/app/main.py @@ -108,7 +108,7 @@ async def _config(): @app.get('/-/readme', summary='* Readme') async def _readme(): from markdown import markdown - content = load_file('../README.md').decode('utf-8') + content = load_file(join(dirname(__file__), '../README.md')).decode('utf-8') return HTMLr(markdown(text=content, extensions=['tables', 'fenced_code', 'md_in_html', 'nl2br', 'toc']))