Searched refs:cache_file (Results 1 – 5 of 5) sorted by relevance
298 def find_uno_python(layout, explicit=None, cache_file=None, environ=None, which=shutil.which, linke… argument302 if cache_file and Path(cache_file).is_file():304 cache = json.loads(Path(cache_file).read_text())317 if cache_file:320 Path(cache_file).parent.mkdir(parents=True, exist_ok=True)321 Path(cache_file).write_text(json.dumps(cache))
210 assert find(cache_file=cache).path == sys.executable and len(asked) == 1211 again = find(cache_file=cache)214 find(cache_file=cache)217 …assert find(cache_file=cache).path == sys.executable # a damaged cache is ig…223 find(cache_file=cache)225 …assert find(cache_file=cache, explicit="/other/python").path == "/other/python" and len(asked) == …
46 py = install.find_uno_python(layout, cache_file=tmp_path / "uno.json")
129 if test -r "$cache_file"; then132 - if test -f "$cache_file"; then135 + if test /dev/null != "$cache_file" && test -f "$cache_file"; then136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5137 $as_echo "$as_me: loading cache $cache_file" >&6;}138 case $cache_file in
71 … cache_file=tmp_path_factory.getbasetemp() / "uno-python.json")