feat&fix: add proxy support in setup and remove hardcoded proxy from example
This commit is contained in:
@@ -203,7 +203,7 @@ class DesktopEnv(gym.Env):
|
||||
self._set_task_info(task_config)
|
||||
self.setup_controller.reset_cache_dir(self.cache_dir)
|
||||
logger.info("Setting up environment...")
|
||||
success = self.setup_controller.setup(self.config)
|
||||
success = self.setup_controller.setup(self.config, task_config.get("proxy", False) and self.enable_proxy)
|
||||
if success:
|
||||
break
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user