MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / setup

Function setup

tools/cache.py:193–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191
192
193def setup():
194 global cachedir, cachelock, cachelock_name
195 # figure out the root directory for all caching
196 cachedir = Path(config.CACHE)
197
198 # since the lock itself lives inside the cache directory we need to ensure it
199 # exists.
200 ensure()
201 cachelock_name = Path(cachedir, 'cache.lock')
202 cachelock = filelock.FileLock(cachelock_name)
203
204
205def ensure_setup():

Callers 1

ensure_setupFunction · 0.70

Calls 2

ensureFunction · 0.85
FileLockMethod · 0.80

Tested by

no test coverage detected