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:
Swann 2020-11-25 18:20:28 +01:00
parent 3024b479d3
commit 64bb715aff
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -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