fix: version check command format
This commit is contained in:
parent
a9fb84a5c6
commit
ba98875560
@ -64,7 +64,7 @@ def install_package(name, version):
|
|||||||
|
|
||||||
def check_package_version(name, required_version):
|
def check_package_version(name, required_version):
|
||||||
logging.info(f"Checking {name} 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())
|
version = VERSION_EXPR.search(out.stdout.decode())
|
||||||
if version and version.group() == required_version:
|
if version and version.group() == required_version:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user