Searched refs:state_dir (Results 1 – 4 of 4) sorted by relevance
56 def __init__(self, state_dir=None, log_file=None, test_mode=False): argument68 if state_dir is None:69 state_dir = '/usr/local/tmp/faft'75 log_file = os.path.join(state_dir, log_file)77 self.state_dir = state_dir86 self.create_dir(self.state_dir)195 return os.path.join(self.state_dir, file_name)
250 return os.path.join(self.os_if.state_dir, self.subdir, *paths)
285 state_dir = pathlib.Path(opts.state_dir)286 state_file = state_dir / 'state.json'287 gentoo_subdir = state_dir / 'upstream-gentoo'292 if state_dir.exists():294 shutil.rmtree(str(state_dir))296 state_dir.mkdir(parents=True)
42 os.chdir(os_if.state_dir)