diff --git a/__pycache__/create_git_repo.cpython-311.pyc b/__pycache__/create_git_repo.cpython-311.pyc new file mode 100644 index 0000000..aa8b8f2 Binary files /dev/null and b/__pycache__/create_git_repo.cpython-311.pyc differ diff --git a/bargo.py b/bargo.py index f0a7195..65efe9f 100644 --- a/bargo.py +++ b/bargo.py @@ -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]) \ No newline at end of file