Cleanup: pep8
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user