initial (2017) commit
This commit is contained in:
12
blenderpack.py
Normal file
12
blenderpack.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/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())
|
||||
|
Reference in New Issue
Block a user