I am running Blender with locally installed Python (simply because it has all the libs I need in the scripts).
I noticed however that current version will not run, because it will not find "it's Python executable" (environment.py will fail, because bpy.app.binary_path_python is None).
I have tried to replace it with sys.executable (which was suggested by the runtime check), but it did not help. Eventually I figured out that I need to start Blender with --python-use-system-env. The only way to fix it was to modify:
function getBlenderLaunchArgs() {
return ['--python-use-system-env', '--python', paths_1.launchPath];
}
in blender_executable.js.
I understand that this is not an universal solution, but I do not really know javascript enough to propose anything better.
Apart from that I also modded environment.py to use sys.executable, but this was just a minor fix to squish the warning.
I am running Blender with locally installed Python (simply because it has all the libs I need in the scripts). I noticed however that current version will not run, because it will not find "it's Python executable" (
environment.py
will fail, becausebpy.app.binary_path_python
isNone
).I have tried to replace it with
sys.executable
(which was suggested by the runtime check), but it did not help. Eventually I figured out that I need to start Blender with--python-use-system-env
. The only way to fix it was to modify:in
blender_executable.js
.I understand that this is not an universal solution, but I do not really know javascript enough to propose anything better.
Apart from that I also modded
environment.py
to usesys.executable
, but this was just a minor fix to squish the warning.