Files
sci-gui-agent-benchmark/desktop_env/evaluators/getters/general.py

23 lines
333 B
Python

import os
from typing import Dict
def get_string(env, config: Dict[str, str]) -> str:
"""
Config:
string (str)
"""
return config["string"]
def get_command_line(env, config: Dict[str, str]) -> str:
"""
Config:
string (str)
"""
f = os.popen(config["command"])
return f.read()