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

This commit is contained in:
jimmy committed 2026-05-26 10:15:34 -04:00
1 parent e3eebff36e
commit 4eb4e4ed64
1 file changed
+3 -1
+3 -1
View File
@@ -38,7 +38,9 @@ def export_vcs(project_directory, install_path):
# Now call vcs. # Now call vcs.
vcs_command = "vcs export --exact-with-tags {} > {}".format(project_directory, output_file) 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__": if __name__ == "__main__":