This commit is contained in:
2014-11-27 13:10:40 +01:00
parent 4aabfb09dc
commit 85fd8513ae
4 changed files with 5 additions and 7 deletions

View File

@@ -62,8 +62,6 @@ def create_from_files(blendfile_root, _create_data, deps):
deps.append(f_abs)
if __name__ == "__main__":
import sys
blendfile, blendfile_root, blendfile_deps_json, create_id, create_data, returncode = sys.argv[-6:]

View File

@@ -307,7 +307,8 @@ def file_quick_touch(path, filepart=None, times=None):
def file_quick_image(path, filepart=None):
def write_png(buf, width, height):
""" buf: must be bytes or a bytearray in py3, a regular string in py2. formatted RGBARGBA... """
import zlib, struct
import zlib
import struct
width_byte_4 = width * 4
raw_data = b''.join(b'\x00' + buf[span:span + width_byte_4]
@@ -419,7 +420,6 @@ def blendfile_template_create_from_files(proj_path, session_path, blendfile, ima
assert(len(ret) == len(images))
def wait_for_input():
"""for debugging,
so we can inspect the state of the system before the test finished.