fix: version check command format

This commit is contained in:
Swann 2020-09-29 17:33:39 +02:00
parent a9fb84a5c6
commit ba98875560
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

@ -64,7 +64,7 @@ def install_package(name, version):
def check_package_version(name, required_version):
logging.info(f"Checking {name} version...")
out = subprocess.run(f"{str(PYTHON_PATH)} -m pip show {name}", capture_output=True)
out = subprocess.run([str(PYTHON_PATH), "-m", "pip", "show", name], capture_output=True)
version = VERSION_EXPR.search(out.stdout.decode())
if version and version.group() == required_version: