Skip to content

Commit

Permalink
Fix binary_path_python usage on blender >= 2.91.0
Browse files Browse the repository at this point in the history
  • Loading branch information
portnov committed Apr 12, 2021
1 parent af80870 commit c07b1b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import os
import subprocess

Expand All @@ -14,7 +15,10 @@
from sverchok.ui import color_def
from sverchok.ui.utils import message_on_layout

PYPATH = bpy.app.binary_path_python
if bpy.app.version >= (2, 91, 0):
PYPATH = sys.executable
else:
PYPATH = bpy.app.binary_path_python

def get_params(settings_and_fallbacks):
"""
Expand Down

0 comments on commit c07b1b4

Please sign in to comment.