def check_proxy_setting():
    try:
        http_proxy = os.environ['HTTP_PROXY']
    except KeyError:
        return

    if not http_proxy.startswith('http://'):
        match = re.match('(http://)?([-_\.A-Za-z]+):(\d+)', http_proxy)
        #if not match:
        #    raise Exception('Proxy format not recognised: [%s]' % http_proxy)
        os.environ['HTTP_PROXY'] = 'http://%s:%s' % (match.group(2),
                match.group(3))
    return
Add options to the ARG node context menu.
dataset/ETHPy150Open cakebread/yolk/yolk/pypi.py/check_proxy_setting--crossover with--dataset/ETHPy150Open Microsoft/ivy/ivy/ui_extensions_api.py/arg_node_actions