Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: FPP Visualize #147

Merged
merged 15 commits into from
Aug 1, 2023
4 changes: 1 addition & 3 deletions src/fprime/fpp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def run_fpp_to_xml(
__: Dict[str, str],
___: List[str],
):
"""Run fpp check application

Handles the fpp-check endpoint by running the utility fpp-check.
"""Run the fpp-to-xml utility

Args:
build: build directory output
Expand Down
6 changes: 3 additions & 3 deletions src/fprime/fpp/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run_fprime_visualize(
"fpl-layout is not installed. Please install with `pip install fprime-fpp>1.2.0`"
)

viz_cache = Path(parsed.cache_dir).resolve()
viz_cache = Path(parsed.working_dir).resolve()
xml_cache = (viz_cache / "xml").resolve()
xml_cache.mkdir(parents=True, exist_ok=True)

Expand Down Expand Up @@ -146,9 +146,9 @@ def add_fpp_viz_parsers(
default=7000,
)
viz_parser.add_argument(
"--cache-dir",
"--working-dir",
help="Set the directory to store layout files in [default: %(default)s]",
required=False,
default=".visualize-cache",
default="/tmp/fprime-visualize",
thomas-bc marked this conversation as resolved.
Show resolved Hide resolved
)
return {"visualize": run_fprime_visualize}, {"visualize": viz_parser}