Beispiel #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__
Beispiel #2
0
 def __getstate__(self):
     _, common_part = split_path_custom_common(self.file)
     return {"file_common": common_part}
Beispiel #3
0
 def __getstate__(self):
     _, common_part = split_path_custom_common(self.dir)
     return {"dir_common": common_part, "step": self.step}
Beispiel #4
0
 def __getstate__(self):
     _, common_part = split_path_custom_common(self.dir)
     return {'dir_common': common_part, 'step': self.step}