Home | History | Annotate | Download | only in common_lib

Lines Matching refs:file_path

214     def read_from_file(self, file_path, merge=True):
215 """Read in any state from the file at file_path.
221 @param file_path: The path where the state should be read from. It must
228 attempt to control concurrent access to the file at file_path.
232 if os.path.getsize(file_path) == 0:
235 on_disk_state = pickle.load(open(file_path))
246 'value', namespace, name, file_path)
253 namespace, name, file_path)
263 def write_to_file(self, file_path):
266 @param file_path: The path where the state should be written out to.
270 attempt to control concurrent access to the file at file_path.
272 outfile = open(file_path, 'w')
305 def set_backing_file(self, file_path):
314 @param file_path: A path on the filesystem that can be read from and
318 self._backing_file = file_path