Skip to content

Commit aad9b12

Browse files
committed
Fix base path
Fixes issue where you couldn't load example projects
1 parent 8db2291 commit aad9b12

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

fastapi_forge/example-projects/__init__.py

Whitespace-only changes.

fastapi_forge/frontend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def init(
914914
no_ui: bool = False,
915915
yaml_path: Path | None = None,
916916
) -> None:
917-
base_path = Path("fastapi_forge/example-projects")
917+
base_path = Path(__file__).parent / "example-projects"
918918
default_path = base_path / "dry-service.yaml"
919919
example_path = base_path / "trustpilot-api.yaml"
920920

0 commit comments

Comments
 (0)