1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fixes Qemu version detection.

This commit is contained in:
Jeremy 2014-11-24 11:44:27 -07:00
parent 6ef614103e
commit 4918675cd5

View File

@ -601,8 +601,8 @@ class Qemu(IModule):
if sys.platform.startswith("win"): if sys.platform.startswith("win"):
return "" return ""
try: try:
output = subprocess.check_output([qemu_path, "--version"]) output = subprocess.check_output([qemu_path, "-version"])
match = re.search("QEMU emulator version ([0-9a-z\-\.]+)", output.decode("utf-8")) match = re.search("version\s+([0-9a-z\-\.]+)", output.decode("utf-8"))
if match: if match:
version = match.group(1) version = match.group(1)
return version return version