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