diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-29 14:22:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-30 02:00:41 +0300 |
commit | ca983d1825fdef95688368da5fb4224bb4a12349 (patch) | |
tree | d0657f7cdf6f6b92c2ebca817e45c3e01a9f3f93 /release/scripts/modules/sys_info.py | |
parent | 3d7cf808b8eeb98b20587298282c7b6d69271cba (diff) |
Cleanup: pep8
Diffstat (limited to 'release/scripts/modules/sys_info.py')
-rw-r--r-- | release/scripts/modules/sys_info.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py index 49395dd48f0..75ac67c5660 100644 --- a/release/scripts/modules/sys_info.py +++ b/release/scripts/modules/sys_info.py @@ -53,7 +53,8 @@ def write_sysinfo(filepath): # build info output.write(title("Blender")) - output.write("version: %s, branch: %s, commit date: %s %s, hash: %s, type: %s\n" % + output.write( + "version: %s, branch: %s, commit date: %s %s, hash: %s, type: %s\n" % (bpy.app.version_string, prepr(bpy.app.build_branch), prepr(bpy.app.build_commit_date), @@ -81,9 +82,9 @@ def write_sysinfo(filepath): 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()) + bpy.app.binary_path_python, + "--version", + ]).strip()) except Exception as e: py_ver = str(e) output.write("version: %s\n" % py_ver) @@ -105,8 +106,9 @@ def write_sysinfo(filepath): ffmpeg = bpy.app.ffmpeg if ffmpeg.supported: for lib in ("avcodec", "avdevice", "avformat", "avutil", "swscale"): - output.write("%s:%s%r\n" % (lib, " " * (10 - len(lib)), - getattr(ffmpeg, lib + "_version_string"))) + output.write( + "%s:%s%r\n" % (lib, " " * (10 - len(lib)), + getattr(ffmpeg, lib + "_version_string"))) else: output.write("Blender was built without FFmpeg support\n") @@ -205,4 +207,3 @@ def write_sysinfo(filepath): output.write(cycles.engine.system_info()) output.close() - |