System info: add OS version to sys_info.py

Match the output to the prefilled bug report script's output.
Make the output file self-contained.

Reviewed By: lichtwerk
Differential Revision: https://developer.blender.org/D11144
This commit is contained in:
Ankit Meel 2021-05-05 10:08:04 +05:30
parent 20aed341ee
commit 08f4bab658
Notes: blender-bot 2023-02-14 10:21:11 +01:00
Referenced by issue #88063, gpu_pass_free assert failed
Referenced by issue #88033, Memory leak after importing a model/ toggling shading workspace
Referenced by issue #84559, White Screen on Viewport Shading after 2.91 Update
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
def write_sysinfo(filepath):
import sys
import platform
import subprocess
@ -63,7 +64,7 @@ def write_sysinfo(filepath):
))
output.write("build date: %s, %s\n" % (prepr(bpy.app.build_date), prepr(bpy.app.build_time)))
output.write("platform: %s\n" % prepr(bpy.app.build_platform))
output.write("platform: %s\n" % prepr(platform.platform()))
output.write("binary path: %s\n" % prepr(bpy.app.binary_path))
output.write("build cflags: %s\n" % prepr(bpy.app.build_cflags))
output.write("build cxxflags: %s\n" % prepr(bpy.app.build_cxxflags))