Skip to content

Commit

Permalink
Add env var for customising location of static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
nenb committed Jan 22, 2024
1 parent 61e8d5f commit 09da43b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ragna/deploy/_ui/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from pathlib import Path
from urllib.parse import urlsplit

Expand All @@ -24,8 +25,8 @@

HERE = Path(__file__).parent
# CSS = HERE / "css"
IMGS = HERE / "imgs"
RES = HERE / "resources"
IMGS = Path(os.environ.get("RAGNA_UI_IMG_DIR", HERE / "imgs"))
RES = Path(os.environ.get("RAGNA_UI_RES_DIR", HERE / "resources"))


class App(param.Parameterized):
Expand Down

0 comments on commit 09da43b

Please sign in to comment.