def running_old_sell(manager, installer):
if any(installed is False for package, installed in installer.check_dependencies()):
return False
if isinstance(manager.machine, Two1MachineVirtual):
try:
vbox_conf = subprocess.check_output(["VBoxManage", "showvminfo", "21", "--machinereadable"],
stderr=subprocess.DEVNULL)
if type(vbox_conf) is bytes:
vbox_conf = vbox_conf.decode()
if "bridgeadapter3" in vbox_conf:
return True
else:
return False
except subprocess.CalledProcessError:
return False
else:
return False
评论列表
文章目录