Пример #1
0
 def __init__(self, cwd):
     self._local_file = self._get_exists_or_first(NodeInfo.from_path(cwd),
                                                  CONF_NAMES)
     self._global_file = self._get_exists_or_first(
         NodeInfo.from_path(Path.from_home()), CONF_NAMES)
     self._local_conf: dict = None
     self._global_conf: dict = None
     self._is_local_new: bool = None
     self._local_changed = False
Пример #2
0
def get_conf_file() -> FileInfo:
    path = Path.from_home() / '.config' / 'clearcache' / 'conf.json'
    return FileInfo(path)