psychopy.web
- Web methods¶psychopy.web.
haveInternetAccess
(forceCheck=False)¶Detect active internet connection or fail quickly.
If forceCheck is False, will rely on a cached value if possible.
psychopy.web.
requireInternetAccess
(forceCheck=False)¶Checks for access to the internet, raise error if no access.
psychopy.web.
setupProxy
(log=True)¶Set up the urllib proxy if possible.
The function will use the following methods in order to try and determine proxies:
- standard urllib.request.urlopen (which will use any statically-defined http-proxy settings)
- previous stored proxy address (in prefs)
- proxy.pac files if these have been added to system settings
- auto-detect proxy settings (WPAD technology)
Returns: | True (success) or False (failure) |
---|