-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path__init__.py
More file actions
35 lines (27 loc) · 698 Bytes
/
__init__.py
File metadata and controls
35 lines (27 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from . import engine
from . import ui
bl_info = {
"name": "BlenderPythonRender",
"author": "Brian Savery",
"description": "Blender Python Render is a render addon \
that renders on the GPU via a python module called 'Taichi'",
"blender": (3, 0, 0),
"version": (0, 0, 1),
"location": "",
"warning": "",
"category": "Render"
}
def check_for_taichi():
# look for taichi and install via PIP if needed
try:
import taichi
except:
import pip
pip.main(['install', 'taichi', '--user'])
def register():
check_for_taichi()
engine.register()
ui.register()
def unregister():
engine.unregister()
ui.unregister()