Skip to content

Commit

Permalink
Load about app content relative to app file
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Oct 24, 2023
1 parent b0d0aa0 commit abcc5b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion simulatingrisk/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os.path

Check warning on line 1 in simulatingrisk/app.py

View check run for this annotation

Codecov / codecov/patch

simulatingrisk/app.py#L1

Added line #L1 was not covered by tests

import solara

from simulatingrisk.hawkdove.app import page as hawkdove_page
Expand All @@ -8,7 +10,8 @@

@solara.component
def Home():
with open("simulatingrisk/about_app.md") as readmefile:
# load about markdown file in the same directory
with open(os.path.join(os.path.dirname(__file__), "about_app.md")) as readmefile:

Check warning on line 14 in simulatingrisk/app.py

View check run for this annotation

Codecov / codecov/patch

simulatingrisk/app.py#L14

Added line #L14 was not covered by tests
return solara.Markdown("\n".join(readmefile.readlines()))


Expand Down

0 comments on commit abcc5b6

Please sign in to comment.