Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ serve: build ## Serve the stlite static build
dev: ## Run normal Streamlit locally
$(UV) run streamlit run $(APP_PY)

.PHONY: editor
editor: ## Run the model editor app
$(UV) run streamlit run editor.py

.PHONY: stlite
stlite: setup serve ## Install, build, and serve the stlite app

Expand Down
10 changes: 10 additions & 0 deletions editor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import sys
import runpy
from pathlib import Path

SRC_DIR = Path(__file__).resolve().parent / "src"
if str(SRC_DIR) not in sys.path:
sys.path.insert(0, str(SRC_DIR))

# Importing this module executes the Streamlit editor app definition.
runpy.run_module("epicc.editor.__main__", run_name="__main__")
1 change: 1 addition & 0 deletions src/epicc/editor/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""EPICC Model Editor package."""
Loading
Loading