feat&refactor: add proxy setup functionality and update .gitignore for proxy config file
This commit is contained in:
@@ -191,6 +191,10 @@ class DesktopEnv(gym.Env):
|
||||
logger.info("Setting up environment...")
|
||||
self.setup_controller.setup(self.config)
|
||||
logger.info("Environment setup complete.")
|
||||
|
||||
if task_config.get("proxy", False):
|
||||
# If using proxy, set up the proxy configuration
|
||||
self.setup_controller._proxy_setup()
|
||||
|
||||
observation = self._get_obs()
|
||||
return observation
|
||||
|
||||
Reference in New Issue
Block a user