Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
BN-125 Fixed issue with sys.executable - now it's working on 2.91.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rabits committed Nov 27, 2020
1 parent be8de26 commit 556f178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BlendNet/TaskBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Description: Base functionality for any task
'''

import bpy
import os, sys
import json
import time
Expand Down Expand Up @@ -438,7 +439,7 @@ def runBlenderScriptProcessor(self, workspace_path, script_suffix, cfg, blendfil
json.dump(cfg, f)

script_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'script-%s.py' % script_suffix)
command = [sys.executable, '-b', '-noaudio', '-y']
command = [bpy.app.binary_path, '-b', '-noaudio', '-y']
if blendfile:
command.append(os.path.join(workspace_path, 'project', blendfile))
# Position of script is important - if it's after blend file,
Expand Down

0 comments on commit 556f178

Please sign in to comment.