Actually, this piece of code seems to work fine
        # Get our proxy settings from the environment
        proxies = {}
        try:
                for proto in ('http','https','ftp'):
                        try:
                                proxies[proto] = os.environ[proto+"_proxy"]
                        except KeyError:
                                pass
                print proxies # my code
                
                if proxies:
                        urllib._urlopener = urllib.FancyURLopener(proxies)
        except Exception:

and then the urllib.urlretrieve should work, and it does when run
manually, but somehow not from the cron job. I can't see why.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098233

Title:
  flashplugin-installer do not honore proxy settings

To manage notifications about this bug go to:
https://bugs.launchpad.net/adobe-flash-plugin-tools/+bug/1098233/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to