Capture output from shell command. Removes a warning ultimately from vcs.

This commit is contained in:
James Pace 2026-05-26 10:15:34 -04:00
parent e3eebff36e
commit 4eb4e4ed64
1 changed files with 3 additions and 1 deletions

4
run.py
View File

@ -38,7 +38,9 @@ def export_vcs(project_directory, install_path):
# Now call vcs.
vcs_command = "vcs export --exact-with-tags {} > {}".format(project_directory, output_file)
subprocess.run(vcs_command, shell=True)
result = subprocess.run(vcs_command, shell=True, capture_output=True)
if result.returncode != 0:
print("Failed to export software version. Return code: {}".format(result.returncode))
if __name__ == "__main__":