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

Add detection of qemu and qemu.exe binaries.

This commit is contained in:
Jeremy 2014-11-03 17:36:14 -07:00
parent 410729c998
commit 7809160ea1

View File

@ -634,7 +634,7 @@ class Qemu(IModule):
for path in paths: for path in paths:
try: try:
for f in os.listdir(path): for f in os.listdir(path):
if f.startswith("qemu-system") and os.access(os.path.join(path, f), os.X_OK): if (f.startswith("qemu-system") or f == "qemu" or f == "qemu.exe") and os.access(os.path.join(path, f), os.X_OK):
qemu_path = os.path.join(path, f) qemu_path = os.path.join(path, f)
version = self._get_qemu_version(qemu_path) version = self._get_qemu_version(qemu_path)
qemus.append({"path": qemu_path, "version": version}) qemus.append({"path": qemu_path, "version": version})