Merge branch 'zdy'

This commit is contained in:
David Chang
2023-12-21 10:42:18 +08:00
6 changed files with 106 additions and 64 deletions

View File

@@ -60,7 +60,7 @@ class DesktopEnv(gym.Env):
def _start_emulator(self):
while True:
try:
output = subprocess.check_output(f"vmrun -T ws list", shell=True, stderr=subprocess.STDOUT)
output = subprocess.check_output("vmrun -T ws list", shell=True, stderr=subprocess.STDOUT)
output = output.decode()
if self.path_to_vm.lstrip("~/") in output:
print("VM is running.")