diff --git a/gl3w_gen.py b/gl3w_gen.py index 27bfb6c..9f6c643 100755 --- a/gl3w_gen.py +++ b/gl3w_gen.py @@ -31,6 +31,7 @@ import argparse import os import re +import ssl # Try to import Python 3 library urllib.request # and if it fails, fall back to Python 2 urllib2 @@ -87,6 +88,8 @@ def download(url, dst): print('Reusing {0}...'.format(dst)) return + ssl._create_default_https_context = ssl._create_unverified_context + print('Downloading {0}...'.format(dst)) web = urllib2.urlopen(urllib2.Request(url, headers={'User-Agent': 'Mozilla/5.0'})) with open(dst, 'wb') as f: