diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-10-30 14:29:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-10-30 14:33:24 +0300 |
commit | 5bfa43d385f17fe8f57950b7b47abd38c34cfdd7 (patch) | |
tree | 3924943d281e4b7ecc8ab9ab0b85aec3b38090bf /release | |
parent | 0a5fdb6354ddaf405522d2161078f1570a981603 (diff) |
Include Python binary in system-info.txt
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/sys_info.py | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py index c79865d2fca..8f7e364125e 100644 --- a/release/scripts/modules/sys_info.py +++ b/release/scripts/modules/sys_info.py @@ -20,14 +20,15 @@ # classes for extracting info from blenders internal classes -import bpy -import bgl - -import sys - def write_sysinfo(op): + import sys + import textwrap + import subprocess + + import bpy + import bgl output_filename = "system-info.txt" @@ -83,6 +84,18 @@ def write_sysinfo(op): for p in sys.path: output.write("\t%r\n" % p) + output.write(title("Python (External Binary)")) + output.write("binary path: %s\n" % prepr(bpy.app.binary_path_python)) + try: + py_ver = prepr(subprocess.check_output([ + bpy.app.binary_path_python, + "--version", + ]).strip()) + except Exception as e: + py_ver = str(e) + output.write("version: %s\n" % py_ver) + del py_ver + output.write(title("Directories")) output.write("scripts:\n") for p in bpy.utils.script_paths(): |