(self)
Save the information about the current state of multi_thread to the _saving_path in pkl form.
Save the information about the current state of multi_thread to the _saving_path in pkl form.
Save the information about the current state of multi_thread to the _saving_path in pkl form .
def save(self):
        """
        Save the information about the current state of multi_thread to the _saving_path in pkl form.
        """
        if self._saving_path is None:
            return
        if os.path.isdir(self._saving_path):
            f = open(os.path.join(self._saving_path, 'multi_thread_state.pkl'), 'wb')
        else:
            f = open(self._saving_path, 'wb')
        pickle.dump(self, f)
        f.close()
def save ( self ) : if self . _saving_path is None : return if os . path . isdir ( self . _saving_path ) : f = open ( os . path . join ( self . _saving_path , 'multi_thread_state.pkl' ) , 'wb' ) else : f = open ( self . _saving_path , 'wb' ) pickle . dump ( self , f ) f . close ( )