ver Jan4th
updated interfaces for thunderbird evaluation, not tested
This commit is contained in:
@@ -33,8 +33,6 @@ def get_vm_file(env, config: Dict[str, str]) -> str:
|
||||
"""
|
||||
|
||||
_path = os.path.join(env.cache_dir, config["dest"])
|
||||
if os.path.exists(_path):
|
||||
return _path
|
||||
|
||||
file = env.controller.get_file(config["path"])
|
||||
with open(_path, "wb") as f:
|
||||
@@ -42,3 +40,12 @@ def get_vm_file(env, config: Dict[str, str]) -> str:
|
||||
|
||||
return _path
|
||||
|
||||
def get_cache_file(env, config: Dict[str, str]) -> str:
|
||||
"""
|
||||
Config:
|
||||
path (str): relative path in cache dir
|
||||
"""
|
||||
|
||||
_path = os.path.join(env.cache_dir, config["path"])
|
||||
assert os.path.exists(_path)
|
||||
return _path
|
||||
|
||||
Reference in New Issue
Block a user