Merge pull request #418 from GNS3/no_spice

Do not list qemu binary with -spice in the name
This commit is contained in:
Jeremy Grossmann committed 2016-02-03 13:45:03 -08:00
commit 3e4423f663
2 files changed
+4 -1

No files matched your search

+2
View File
@@ -117,6 +117,8 @@ class Qemu(BaseManager):
for path in Qemu.paths_list():
try:
for f in os.listdir(path):
if f.endswith("-spice"):
continue
if (f.startswith("qemu-system") or f.startswith("qemu-kvm") or f == "qemu" or f == "qemu.exe") and \
os.access(os.path.join(path, f), os.X_OK) and \
os.path.isfile(os.path.join(path, f)):