diff --git a/client/gui/browser.py b/client/gui/browser.py index 84942e2..3972682 100755 --- a/client/gui/browser.py +++ b/client/gui/browser.py @@ -29,16 +29,17 @@ class PathHandle: "json", "path", ) + def __init__(self): self.json = None # list of strings self.path = [] - #self.filepath_set("gui.json") + # self.filepath_set("gui.json") self.refresh() def refresh(self): - import json + # import json # self.json = json.load(fp) self.json = self.json_from_server(self.path) print(self.json) diff --git a/modules/blendfile_pack.py b/modules/blendfile_pack.py index 136c305..989bf97 100755 --- a/modules/blendfile_pack.py +++ b/modules/blendfile_pack.py @@ -133,7 +133,6 @@ def pack( assert((blendfile_src_dir_fakeroot is None) or (not blendfile_src_dir_fakeroot.startswith(os.sep.encode('ascii')))) - path_temp_files = set() path_copy_files = set() diff --git a/tests/blendfile_templates.py b/tests/blendfile_templates.py index 5896dc7..f23e381 100644 --- a/tests/blendfile_templates.py +++ b/tests/blendfile_templates.py @@ -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:] diff --git a/tests/test_cli.py b/tests/test_cli.py index cad1220..eb6dcce 100755 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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.