Show More
@@ -28,3 +28,8 b' def wait_file(path, timeout=10):' | |||||
28 | if time.time() - start > timeout: |
|
28 | if time.time() - start > timeout: | |
29 | raise RuntimeError(b"timed out waiting for file: %s" % path) |
|
29 | raise RuntimeError(b"timed out waiting for file: %s" % path) | |
30 | time.sleep(0.01) |
|
30 | time.sleep(0.01) | |
|
31 | ||||
|
32 | ||||
|
33 | def write_file(path, content=b''): | |||
|
34 | with open(path, 'wb') as f: | |||
|
35 | f.write(content) |
General Comments 0
You need to be logged in to leave comments.
Login now