fix: python_binary_path deprecation in 2.91.0
More infos here: https://wiki.blender.org/wiki/Reference/Release_Notes/2.91/Python_API
This commit is contained in:
parent
3024b479d3
commit
64bb715aff
@ -58,7 +58,12 @@ def register():
|
||||
level=logging.INFO)
|
||||
|
||||
try:
|
||||
environment.setup(DEPENDENCIES, bpy.app.binary_path_python)
|
||||
if bpy.app.version[1] >= 91:
|
||||
python_binary_path = sys.executable
|
||||
else:
|
||||
python_binary_path = bpy.app.binary_path_python
|
||||
|
||||
environment.setup(DEPENDENCIES, python_binary_path)
|
||||
|
||||
from . import presence
|
||||
from . import operators
|
||||
|
Loading…
Reference in New Issue
Block a user