Make up missing getters and metrics; Update VLC scripts; Start to work on Chrome, update examples instructions
This commit is contained in:
20
desktop_env/evaluators/getters/info.py
Normal file
20
desktop_env/evaluators/getters/info.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import os
|
||||
from typing import Union
|
||||
|
||||
|
||||
def get_vm_screen_size(env, config: dict) -> dict:
|
||||
return env.controller.get_vm_screen_size()
|
||||
|
||||
|
||||
def get_vm_window_size(env, config: dict) -> dict:
|
||||
return env.controller.get_vm_window_size(app_class_name=config["app_class_name"])
|
||||
|
||||
|
||||
def get_vm_wallpaper(env, config: dict) -> Union[str, bytes]:
|
||||
_path = os.path.join(env.cache_dir, config["dest"])
|
||||
|
||||
content = env.controller.get_vm_wallpaper()
|
||||
with open(_path, "wb") as f:
|
||||
f.write(content)
|
||||
|
||||
return _path
|
||||
Reference in New Issue
Block a user