Open LeStarch opened 2 months ago
If a user does the following:
git clone https://github.com/nasa/fprime.git fprime-2 cd fprime-2 fprime-util generate
The system fails.
https://github.com/nasa/fprime-tools/blob/c15253c98ffc816bcca24db43f24c4c070b7c5ff/src/fprime/fbuild/settings.py#L26-L38
That code makes the assumption that fprime is in a folder called "fprime" and fails otherwise.
Execute fprime-util version-check and share the output.
fprime-util version-check
Operating System: Darwin CPU Architecture: arm64 Platform: macOS-14.4.1-arm64-arm-64bit Python version: 3.11.0 CMake version: 3.29.0 Pip version: 22.3 Pip packages: fprime-tools==3.4.4 fprime-gds==3.4.4a1 fprime-fpp-*==2.1.0a5
See description.
This should work in the following cases:
fprime
Here is what it should do:
cmake/FPrime.cmake
*/cmake/FPrime.cmake
framework_path
Problem Description
If a user does the following:
The system fails.
https://github.com/nasa/fprime-tools/blob/c15253c98ffc816bcca24db43f24c4c070b7c5ff/src/fprime/fbuild/settings.py#L26-L38
That code makes the assumption that fprime is in a folder called "fprime" and fails otherwise.
Context / Environment
Execute
fprime-util version-check
and share the output.How to Reproduce
See description.
Expected Behavior
This should work in the following cases:
fprime
named something elsefprime
parallel to anotherfprime
checkoutHere is what it should do:
cmake/FPrime.cmake
. If this exists, then the current directory is "fprime" (e.g. framework_path)*/cmake/FPrime.cmake
framework_path