in tools/check-license.py [0:0]
def downloadprfiles(prfiles):
for file in prfiles:
# print('Create Temp Directory')
path = os.path.dirname(file['filename'])
path = os.getcwd() + '/temp/' + path
# print(path)
if not os.path.exists(path):
os.makedirs(path)
# print('Beginning file download with requests')
r = requests.get(file['raw_url'])
with open(path + '/' + os.path.basename(file['filename']), 'wb') as f:
f.write(r.content)