From 7809160ea1d69a82a8e354e0d14a6e93cc99b7ea Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 3 Nov 2014 17:36:14 -0700 Subject: [PATCH] Add detection of qemu and qemu.exe binaries. --- gns3server/modules/qemu/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/qemu/__init__.py b/gns3server/modules/qemu/__init__.py index bb740510..a1917d51 100644 --- a/gns3server/modules/qemu/__init__.py +++ b/gns3server/modules/qemu/__init__.py @@ -634,7 +634,7 @@ class Qemu(IModule): for path in paths: try: 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) version = self._get_qemu_version(qemu_path) qemus.append({"path": qemu_path, "version": version})