Clean code

This commit is contained in:
yuanmengqi
2025-07-23 16:05:39 +00:00
parent 73de48af75
commit 5d219e7a5b
3 changed files with 29 additions and 29 deletions

View File

@@ -183,8 +183,8 @@ class DesktopEnv(gym.Env):
self.path_to_vm = os.path.abspath(os.path.expandvars(os.path.expanduser(path_to_vm))) \
if provider_name in {"vmware", "virtualbox"} else path_to_vm
else:
self.path_to_vm = self.manager.get_vm_path(os_type=self.os_type, region=region, screen_size=(self.screen_width, self.screen_height))
try:
self.snapshot_name = snapshot_name
self.cache_dir_base: str = cache_dir