mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-30 01:28:56 +00:00
Fix incorrect Qemu binary selected when importing template. Fixes https://github.com/GNS3/gns3-gui/issues/3216
This commit is contained in:
parent
c4c71cc838
commit
92150fba71
@ -152,8 +152,6 @@ class Qemu(BaseManager):
|
|||||||
log.debug("Searching for Qemu binaries in '{}'".format(path))
|
log.debug("Searching for Qemu binaries in '{}'".format(path))
|
||||||
try:
|
try:
|
||||||
for f in os.listdir(path):
|
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 \
|
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.access(os.path.join(path, f), os.X_OK) and \
|
||||||
os.path.isfile(os.path.join(path, f)):
|
os.path.isfile(os.path.join(path, f)):
|
||||||
|
Loading…
Reference in New Issue
Block a user