[Bf-blender-cvs] [08f4bab658c] master: System info: add OS version to sys_info.py

Ankit Meel noreply at git.blender.org
Wed May 5 06:42:10 CEST 2021


Commit: 08f4bab658cd8c930450c11862540ff2da434151
Author: Ankit Meel
Date:   Wed May 5 10:08:04 2021 +0530
Branches: master
https://developer.blender.org/rB08f4bab658cd8c930450c11862540ff2da434151

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

===================================================================

M	release/scripts/modules/sys_info.py

===================================================================

diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py
index cb80529f0f3..5116e0f0088 100644
--- a/release/scripts/modules/sys_info.py
+++ b/release/scripts/modules/sys_info.py
@@ -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))



More information about the Bf-blender-cvs mailing list