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:
parent
6ef614103e
commit
4918675cd5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user