prebuilt: automatically pick up qemu from PATH if not built like qemu-img

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-11-22 00:00:02 +00:00
parent 701bf6703b
commit f73eaaffd2
3 changed files with 10 additions and 6 deletions

View File

@@ -537,7 +537,7 @@ def print_time(ellapsed_seconds):
print("time {:02}:{:02}:{:02}".format(int(hours), int(minutes), int(seconds)))
def raw_to_qcow2(prebuilt=False, reverse=False):
if prebuilt:
if prebuilt or not os.path.exists(common.qemu_img_executable):
disable_trace = []
qemu_img_executable = common.qemu_img_basename
else: