Load an object from the specified path.
(path)
| 34 | |
| 35 | @staticmethod |
| 36 | def _load(path): |
| 37 | "Load an object from the specified path." |
| 38 | with open(path, 'rb') as file: |
| 39 | data = file.read() |
| 40 | return pickle.loads(zlib.decompress(data)) |
| 41 | |
| 42 | ################################################################################ |
| 43 |