silly little bargo

main
Brett 2024-05-28 20:18:50 -04:00
parent b3b2adf301
commit dd5f3e7245
2 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@ -6,5 +6,17 @@ import requests
import json
import argparse
import os
import subprocess
import create_git_repo as repo
def open_process(command):
process = subprocess.Popen(command, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
stdout, stderr = process.communicate()
exit_code = process.wait()
#print(stdout, stderr, exit_code)
return (stdout, stderr, exit_code)
cmake_output, cmake_err, _ = open_process(["cmake", "--version"])
cmake_lines = cmake_output.splitlines()
print(str(cmake_lines[0]).split("version ")[1][0:-1])