Skip to content

Commit

Permalink
Subprocess call quietly
Browse files Browse the repository at this point in the history
  • Loading branch information
mosa11aei committed Jul 24, 2024
1 parent 376544c commit af677c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fppm/cli/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,22 @@ def create_project_yaml_file(args, context) -> int:
]
)

subprocess.check_call(
subprocess.call(
[
"git",
"checkout",
f"tags/{SUBTOPOLOGY_AC_TAG}",
],
cwd="fprime-subtopology-tool",
stdout=open(os.devnull, "wb"),
)
except Exception as e:
FppmUtils.print_error(
f"[ERR]: Error installing subtopology autocoder: {e}"
)
return 1

print(
FppmUtils.print_warning(
f"[INFO]: Subtopology autocoder installed at {SUBTOPOLOGY_AC_TAG}. Please follow the instructions in the tool's docs/README.md file to add the tool to your CMake process."
)

Expand Down

0 comments on commit af677c8

Please sign in to comment.