diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-07 03:53:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-07 03:53:14 +0300 |
commit | 8fb1ea857ffef370acb020f6573c165100923e1b (patch) | |
tree | 5ca561432b190a80c131db26c803bc530dceced3 | |
parent | dcdcc234884205a8f51eb3a56d0482078105e431 (diff) |
Include file system encoding in 'System Info' operator
Help troubleshooting file system encoding issues.
-rw-r--r-- | release/scripts/modules/sys_info.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py index 656e2b3bd54..fc3ffe4dd88 100644 --- a/release/scripts/modules/sys_info.py +++ b/release/scripts/modules/sys_info.py @@ -70,9 +70,13 @@ def write_sysinfo(filepath): output.write("build linkflags: %s\n" % prepr(bpy.app.build_linkflags)) output.write("build system: %s\n" % prepr(bpy.app.build_system)) - # python info + # Python info. output.write(title("Python")) - output.write("version: %s\n" % (sys.version)) + output.write("version: %s\n" % (sys.version.replace("\n", " "))) + output.write("file system encoding: %s:%s\n" % ( + sys.getfilesystemencoding(), + sys.getfilesystemencodeerrors(), + )) output.write("paths:\n") for p in sys.path: output.write("\t%r\n" % p) |