Skip to content

Commit 6828f2e

Browse files
committed
Fixed launching of schema2ui tool
1 parent 43eae27 commit 6828f2e

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pixi run schema2ui
3131

3232
to bring up a simple app that looks like this:
3333

34-
![schema2ui](./schema2ui.png)
34+
![schema2ui](docs/assets/schema2ui.png)
3535

3636
## UI-Generation
3737

docs/assets/schema2ui.png

88 KB
Loading

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ mypy = "mypy src/schema2ui"
6868
ruff-check = "ruff check"
6969
ruff-format = "ruff format"
7070
tests = "pytest"
71-
schema2ui = "python ./tests/panel/schema2ui.py"
71+
schema2ui = "python -m tests.panel.schema2ui"
7272

7373

7474
[tool.pixi.tasks.format]

schema2ui.png

-102 KB
Binary file not shown.

tests/panel/schema2ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
pn.extension()
1919

20-
GAVICORE_ROOT = (Path(__file__).parent / ".." / ".." / ".." / "..").resolve()
21-
DEFAULT_SCHEMAS_DIR = GAVICORE_ROOT / "tests" / "ui" / "schemas"
20+
PROJECT_ROOT = (Path(__file__).parent / ".." / "..").resolve()
21+
DEFAULT_SCHEMAS_DIR = PROJECT_ROOT / "tests" / "schemas"
2222

2323
APP_NAME = "schema2ui"
2424

0 commit comments

Comments
 (0)