MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / _path_candidates

Function _path_candidates

dwave/cloud/cli.py:1241–1245  ·  view source on GitHub ↗
(subdir: str = '.')

Source from the content-addressed store, hash-verified

1239 return [p for p in paths if p.exists()]
1240
1241 def _path_candidates(subdir: str = '.') -> list[Path]:
1242 paths = set([get_cache_dir()])
1243 if config.cache and config.cache.home:
1244 paths.add(config.cache.home)
1245 return [(Path(p) / subdir).resolve() for p in paths]
1246
1247 return {
1248 # used for solvers, regions

Callers 1

_get_cache_infoFunction · 0.85

Calls 2

get_cache_dirFunction · 0.90
addMethod · 0.45

Tested by

no test coverage detected