Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-10-28 03:31:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-28 03:49:29 +0300
commit04c5471ceefb41c9e49bf7c86f07e9e7b8426bb3 (patch)
tree17302a73e2d0aa0399506cc9d41aaa567c68c5a7 /release
parentbee5921e82eb32dfc2c64aa063f991bc36faa5c7 (diff)
PyAPI: point sys.executable to the Python binary
`sys.executable` is documented to be a Python interpreter or None. This was set to Blender's executable which caused the multiprocessing module to spawn new instances of Blender instead of Python on WIN32. See issue described in D7815. Deprecate 'bpy.app.binary_path_python' & warn when using. Blender's executable remains accessible via `bpy.app.binary_path`.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/sys_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py
index fc3ffe4dd88..cb80529f0f3 100644
--- a/release/scripts/modules/sys_info.py
+++ b/release/scripts/modules/sys_info.py
@@ -82,10 +82,10 @@ def write_sysinfo(filepath):
output.write("\t%r\n" % p)
output.write(title("Python (External Binary)"))
- output.write("binary path: %s\n" % prepr(bpy.app.binary_path_python))
+ output.write("binary path: %s\n" % prepr(sys.executable))
try:
py_ver = prepr(subprocess.check_output([
- bpy.app.binary_path_python,
+ sys.executable,
"--version",
]).strip())
except Exception as e: