From 64bb715aff28c4fa9cbcfec6b71e48123cfbca5a Mon Sep 17 00:00:00 2001 From: Swann Date: Wed, 25 Nov 2020 18:20:28 +0100 Subject: [PATCH] fix: python_binary_path deprecation in 2.91.0 More infos here: https://wiki.blender.org/wiki/Reference/Release_Notes/2.91/Python_API --- multi_user/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/multi_user/__init__.py b/multi_user/__init__.py index 2cd832c..c7f1688 100644 --- a/multi_user/__init__.py +++ b/multi_user/__init__.py @@ -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