"""retriever.lib contains the core EcoData Retriever modules."""


"""retriever.lib contains the core EcoData Retriever modules."""
import os

def set_proxy():
  proxies = ["https_proxy", "http_proxy", "ftp_proxy", "HTTP_PROXY", "HTTPS_PROXY", "FTP_PROXY"]
  for proxy in proxies:
    if os.getenv(proxy):
      if len(os.environ[proxy]) != 0:
        for i in proxies:
          os.environ[i] = os.environ[proxy]
        break
      
set_proxy()

Check for and use system proxies for downloading files