Example #1
0
 def __getstate__(self):
     # Disassemble the directory on pickling
     _, common_part = split_path_custom_common(self._save_dir)
     self.__dict__["_save_dir_common"] = common_part
     return self.__dict__
Example #2
0
 def __getstate__(self):
     _, common_part = split_path_custom_common(self.file)
     return {"file_common": common_part}
Example #3
0
 def __getstate__(self):
     _, common_part = split_path_custom_common(self.dir)
     return {"dir_common": common_part, "step": self.step}
Example #4
0
 def __getstate__(self):
     _, common_part = split_path_custom_common(self.dir)
     return {'dir_common': common_part, 'step': self.step}