summaryrefslogtreecommitdiff
path: root/sysproxy.py
blob: 81867ade0ba30875fa4898e6973519d07e98f295 (plain)
1
2
3
4
5
6
7
import urllib.request


def configure_system_proxy():
    proxy = urllib.request.ProxyHandler(urllib.request.getproxies())
    opener = urllib.request.build_opener(proxy)
    urllib.request.install_opener(opener)