This repository has been archived on 2023-02-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-package-manager-addon/blenderpack.py
2017-06-22 01:43:08 -07:00

13 lines
325 B
Python

#!/usr/bin/env python3
# HACK: seems 'requests' module bundled with blender isn't bundled with 'idna' module. So force system python for now
import sys
sys.path.insert(0, '/usr/lib/python3.6/site-packages')
import requests
def fetch(url):
# TODO: do conditional request
re = requests.get(url)
print(re.json())