Searched refs:state_dir (Results 1 – 3 of 3) sorted by relevance
58 self.state_dir = None70 def init(self, state_dir=None, log_file=None): argument83 self.state_dir = state_dir85 if self.state_dir:86 if not os.path.exists(self.state_dir):88 os.mkdir(self.state_dir)95 self.log_file = os.path.join(state_dir, log_file)209 return os.path.join(self.state_dir, file_name)225 if not self.log_file or not os.path.exists(self.state_dir):
75 state_dir = '/var/tmp/faft'76 self._log_file = os.path.join(state_dir, 'faft_client.log')77 self._os_if.init(state_dir, log_file=self._log_file)78 os.chdir(state_dir)
887 state_dir = os.path.dirname(self._config["PERSISTFILE_BASENAME"])888 if not os.path.exists(state_dir):889 os.makedirs(state_dir)